From 81a8089e758b189b2937e7db0ab43c8a817a5375 Mon Sep 17 00:00:00 2001 From: Beee Date: Sat, 29 Apr 2023 23:49:31 +0200 Subject: [PATCH 1/3] Version --- ACF_City_Selector.php | 4 ++-- README.md | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ACF_City_Selector.php b/ACF_City_Selector.php index 93b313d..49053c3 100755 --- a/ACF_City_Selector.php +++ b/ACF_City_Selector.php @@ -3,7 +3,7 @@ Plugin Name: ACF City Selector Plugin URI: https://acf-city-selector.com Description: An extension for ACF which allows you to select a city based on country and province/state. - Version: 1.10.1 + Version: 1.11.0 Tested up to: 6.1.1 Requires PHP: 7.0 Author: Beee @@ -35,7 +35,7 @@ public function __construct() { $this->settings = array( 'db_version' => '1.0', 'url' => plugin_dir_url( __FILE__ ), - 'version' => '1.10.1', + 'version' => '1.11.0', ); if ( ! class_exists( 'ACFCS_WEBSITE_URL' ) ) { diff --git a/README.md b/README.md index 7178e65..4d2ceff 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Welcome to the City Selector plugin, which is an extension for [Advanced Custom ### Version -1.10.1 - released 29.12.22 +1.11.0 - released 01.05.23 ### Description @@ -183,8 +183,8 @@ This ACF field type is compatible/tested with ACF 5 (Pro). It's slightly tested ### Tested with -* [X] Wordpress 6.1.1 -* [X] Advanced Custom Fields Pro 6.0.5 +* [X] WordPress 6.2 +* [X] Advanced Custom Fields Pro 6.1.4 * [X] Advanced Custom Fields 4.4.12 @@ -228,6 +228,9 @@ I got the idea for this plugin through [Fabrizio Sabato](https://github.com/fab0 ### Changelog +1.11.0 +* ? + 1.10.1 * new language files From c19f433ede7e257bd12fe311e15453f6085edd88 Mon Sep 17 00:00:00 2001 From: Beee Date: Sat, 29 Apr 2023 23:49:37 +0200 Subject: [PATCH 2/3] Fix incorrect index --- admin/acf-city-selector-v5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/acf-city-selector-v5.php b/admin/acf-city-selector-v5.php index 6a5ff2c..d584f65 100755 --- a/admin/acf-city-selector-v5.php +++ b/admin/acf-city-selector-v5.php @@ -130,7 +130,7 @@ function render_field( $field ) { $selected_state = ( isset( $field[ 'value' ][ 'stateCode' ] ) ) ? $field[ 'value' ][ 'stateCode' ] : false; $selected_city = ( isset( $field[ 'value' ][ 'cityName' ] ) ) ? $field[ 'value' ][ 'cityName' ] : false; $show_first = true; - $store_meta = ( isset( $field[ 'value' ][ 'store_meta' ] ) ) ? $field[ 'value' ][ 'store_meta' ] : false; + $store_meta = ( isset( $field[ 'store_meta' ] ) ) ? $field[ 'store_meta' ] : false; $which_fields = ( isset( $field[ 'which_fields' ] ) ) ? $field[ 'which_fields' ] : 'all'; if ( false !== $default_country && false == $selected_country ) { From e1c150cf410d801ac6e4685bf0aa4d52be9fe5c1 Mon Sep 17 00:00:00 2001 From: Beee Date: Sun, 30 Apr 2023 18:36:00 +0200 Subject: [PATCH 3/3] Update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d2ceff..bea9100 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ I got the idea for this plugin through [Fabrizio Sabato](https://github.com/fab0 ### Changelog 1.11.0 -* ? +* fix incorrect index for store as single meta 1.10.1 * new language files