Skip to content

Commit

Permalink
Merge pull request #125 from Beee4life/feature/v1.11.0
Browse files Browse the repository at this point in the history
Feature/v1.11.0
  • Loading branch information
Beee4life authored Apr 30, 2023
2 parents 90db64c + e1c150c commit 54903be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ACF_City_Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' ) ) {
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Welcome to the City Selector plugin, which is an extension for [Advanced Custom
<a name="version"></a>
### Version

1.10.1 - released 29.12.22
1.11.0 - released 01.05.23

<a name="description"></a>
### Description
Expand Down Expand Up @@ -183,8 +183,8 @@ This ACF field type is compatible/tested with ACF 5 (Pro). It's slightly tested
<a name="tested"></a>
### 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

<a name="support"></a>
Expand Down Expand Up @@ -228,6 +228,9 @@ I got the idea for this plugin through [Fabrizio Sabato](https://github.com/fab0
<a name="changelog"></a>
### Changelog

1.11.0
* fix incorrect index for store as single meta

1.10.1
* new language files

Expand Down
2 changes: 1 addition & 1 deletion admin/acf-city-selector-v5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 54903be

Please sign in to comment.