From fb8bac5957e5607c02e51ac7a3c98b8e5b916d96 Mon Sep 17 00:00:00 2001 From: Lane Goldberg Date: Mon, 2 Oct 2017 15:24:37 -0400 Subject: [PATCH] make hidden country/state readonly make hidden country / state fields read only. fixes #17026 --- includes/wc-template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index ed3cc2f1f1b..1e1afc29761 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -2013,7 +2013,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { $field .= '' . current( array_values( $countries ) ) . ''; - $field .= ''; + $field .= ''; } else { @@ -2039,7 +2039,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) { $field_container = ''; - $field .= ''; + $field .= ''; } elseif ( ! is_null( $for_country ) && is_array( $states ) ) {