From 1939abf059a32cf9f8ff6c551c21c3cb7cc9cced Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 9 Nov 2016 22:41:14 -0200 Subject: [PATCH 1/2] Updated use of labels for checkboxes --- templates/checkout/form-billing.php | 4 +++- templates/checkout/form-shipping.php | 5 +++-- templates/checkout/terms.php | 5 +++-- templates/global/form-login.php | 2 +- templates/myaccount/form-login.php | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/checkout/form-billing.php b/templates/checkout/form-billing.php index 2f9162a0d2d..d159fc0508e 100644 --- a/templates/checkout/form-billing.php +++ b/templates/checkout/form-billing.php @@ -49,7 +49,9 @@ if ( ! defined( 'ABSPATH' ) ) { enable_guest_checkout ) : ?>

- get_value( 'createaccount' ) || ( true === apply_filters( 'woocommerce_create_account_default_checked', false ) ) ), true ) ?> type="checkbox" name="createaccount" value="1" /> +

diff --git a/templates/checkout/form-shipping.php b/templates/checkout/form-shipping.php index 3c82f627e50..7e0abfc8a96 100644 --- a/templates/checkout/form-shipping.php +++ b/templates/checkout/form-shipping.php @@ -25,8 +25,9 @@ if ( ! defined( 'ABSPATH' ) ) { cart->needs_shipping_address() ) : ?>

- - type="checkbox" name="ship_to_different_address" value="1" /> +

diff --git a/templates/checkout/terms.php b/templates/checkout/terms.php index 3c75c9482a2..76f2e166450 100644 --- a/templates/checkout/terms.php +++ b/templates/checkout/terms.php @@ -13,8 +13,9 @@ if ( ! defined( 'ABSPATH' ) ) { if ( wc_get_page_id( 'terms' ) > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) : ?>

- id="terms" /> - +

diff --git a/templates/global/form-login.php b/templates/global/form-login.php index 3c69dd0f58e..29308814a1d 100644 --- a/templates/global/form-login.php +++ b/templates/global/form-login.php @@ -47,7 +47,7 @@ if ( is_user_logged_in() ) { -