Skip to content
Browse files

Include disabled() in the input string directly

rather than via sprintf
  • Loading branch information...
1 parent 61c0b2f commit 5b3f28ba59787664ae40bd3e65a079a16b6f90f7 @1bigidea committed Mar 22, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 wpsc-includes/display.functions.php
View
3 wpsc-includes/display.functions.php
@@ -39,8 +39,7 @@ function wpsc_buy_now_button( $product_id, $replaced_shortcode = false ) {
$src = _x( 'https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif', 'PayPal Buy Now Button', 'wpsc' );
$src = apply_filters( 'wpsc_buy_now_button_src', $src );
$classes = "wpsc-buy-now-form wpsc-buy-now-form-{$product_id}";
- $button_html = sprintf('<input %s class="wpsc-buy-now-button wpsc-buy-now-button-%s" type="image" name="submit" border="0" src="%s" alt="%s" />',
- disabled( $has_variants, true, false ),
+ $button_html = sprintf('<input'.disabled( $has_variants, true, false ).' class="wpsc-buy-now-button wpsc-buy-now-button-%s" type="image" name="submit" border="0" src="%s" alt="%s" />',
esc_attr( $product_id ),
esc_url( $src ),
esc_attr__( 'PayPal - The safer, easier way to pay online', 'wpsc' )

0 comments on commit 5b3f28b

Please sign in to comment.
Something went wrong with that request. Please try again.