From 1ab2f983824341ef12ef7c1d78141d1cce551bf4 Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 13:15:17 +0800 Subject: [PATCH 1/6] Woocommerce 3.6.1 template changes --- woocommerce/global/form-login.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/woocommerce/global/form-login.php b/woocommerce/global/form-login.php index f71ac99..e9f6bee 100644 --- a/woocommerce/global/form-login.php +++ b/woocommerce/global/form-login.php @@ -11,9 +11,8 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.0 + * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -36,7 +35,7 @@ if ( is_user_logged_in() ) {

- +

@@ -44,12 +43,13 @@ if ( is_user_logged_in() ) {

- - - -

From d60c6d4428e3d33e60ef1269b49ac3ea721b0b67 Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 13:36:13 +0800 Subject: [PATCH 2/6] Woocommerce 3.6.1 template changes --- woocommerce/global/quantity-input.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/woocommerce/global/quantity-input.php b/woocommerce/global/quantity-input.php index 020cb9b..a3ec3fc 100644 --- a/woocommerce/global/quantity-input.php +++ b/woocommerce/global/quantity-input.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.4.0 + * @version 3.6.0 */ defined( 'ABSPATH' ) || exit; @@ -25,10 +25,10 @@ if ( $max_value && $min_value === $max_value ) {

- + + inputmode="" />
Date: Fri, 19 Apr 2019 13:42:06 +0800 Subject: [PATCH 3/6] woocommerce 3.6.1 template changes --- woocommerce/loop/orderby.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php index 577995d..bd4c825 100644 --- a/woocommerce/loop/orderby.php +++ b/woocommerce/loop/orderby.php @@ -11,9 +11,8 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates - * @version 3.3.0 + * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -22,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) { ?>
- $name ) : ?> From 7d8e00f36e0be6f813cd54ad2f15de0b27f5df48 Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 13:45:55 +0800 Subject: [PATCH 4/6] woocommerce 3.6.1 template changes --- woocommerce/myaccount/form-edit-address.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/woocommerce/myaccount/form-edit-address.php b/woocommerce/myaccount/form-edit-address.php index ad43c3e..c2225b7 100644 --- a/woocommerce/myaccount/form-edit-address.php +++ b/woocommerce/myaccount/form-edit-address.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.4.0 + * @version 3.6.0 */ defined( 'ABSPATH' ) || exit; @@ -35,9 +35,6 @@ do_action( 'woocommerce_before_edit_account_address_form' ); ?>
$field ) { - if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) { - $field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] ); - } woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) ); } ?> From a28c44d0ec11587e44c6277b75e82d40ed75685b Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 14:01:43 +0800 Subject: [PATCH 5/6] woocommerce 3.6.1 template changes --- woocommerce/myaccount/form-login.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/woocommerce/myaccount/form-login.php b/woocommerce/myaccount/form-login.php index a42db46..14f5f05 100644 --- a/woocommerce/myaccount/form-login.php +++ b/woocommerce/myaccount/form-login.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates - * @version 3.5.1 + * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) { do_action( 'woocommerce_before_customer_login_form' ); ?> - +
@@ -47,11 +47,12 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>

- - -

@@ -61,7 +62,8 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>

- + +
@@ -94,6 +96,10 @@ do_action( 'woocommerce_before_customer_login_form' ); ?>

+ + +

+ From c500160d12eb4dbde54a7f1730af8096bf5b195e Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Fri, 19 Apr 2019 14:48:22 +0800 Subject: [PATCH 6/6] woocommerce 3.6.1 template changes --- woocommerce/single-product/rating.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/woocommerce/single-product/rating.php b/woocommerce/single-product/rating.php index 297111a..b1be13d 100644 --- a/woocommerce/single-product/rating.php +++ b/woocommerce/single-product/rating.php @@ -11,18 +11,17 @@ * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ - * @author WooThemes * @package WooCommerce/Templates - * @version 3.1.0 + * @version 3.6.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } global $product; -if ( 'no' === get_option( 'woocommerce_enable_review_rating' ) ) { +if ( ! wc_review_ratings_enabled() ) { return; } @@ -33,8 +32,12 @@ $average = $product->get_average_rating(); if ( $rating_count > 0 ) : ?>