Merge pull request #3975 from samuelaguilera/patch-1

Changed id for payment_method_$gateway from <input> to <li>
This commit is contained in:
Mike Jolley 2013-10-22 05:33:35 -07:00
commit c3aba912db
1 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
foreach ( $available_gateways as $gateway ) {
?>
<li>
<input type="radio" id="payment_method_<?php echo $gateway->id; ?>" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> />
<li id="payment_method_<?php echo $gateway->id; ?>" >
<input type="radio" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> />
<label for="payment_method_<?php echo $gateway->id; ?>"><?php echo $gateway->get_title(); ?> <?php echo $gateway->get_icon(); ?></label>
<?php
if ( $gateway->has_fields() || $gateway->get_description() ) :
@ -187,4 +187,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<?php do_action( 'woocommerce_review_order_after_payment' ); ?>
</div>
</div>