From 1fe315cfa227ba74adf80895dd6c241633f93687 Mon Sep 17 00:00:00 2001 From: Chris Bibby Date: Sat, 20 Apr 2019 09:45:02 +0800 Subject: [PATCH] Woocommerce 3.6.1 updates --- woocommerce/global/form-login.php | 14 +++++++------- woocommerce/global/quantity-input.php | 10 ++++------ woocommerce/loop/orderby.php | 5 ++--- woocommerce/myaccount/form-edit-address.php | 5 +---- woocommerce/myaccount/form-login.php | 18 ++++++++++++------ woocommerce/single-product/rating.php | 15 +++++++++------ 6 files changed, 35 insertions(+), 32 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() ) {

- - - -

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="" />
- $name ) : ?> 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'] ) ); } ?> 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' ); ?>

+ + +

+ 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 ) : ?>