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