Plugin Directory

Changeset 3048288


Ignore:
Timestamp:
03/09/2024 03:31:01 PM (2 years ago)
Author:
Beee
Message:

add 1.12.0 files

Location:
acf-city-selector/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • acf-city-selector/trunk/ACF_City_Selector.php

    r2906374 r3048288  
    44    Plugin URI:     https://acf-city-selector.com
    55    Description:    An extension for ACF which allows you to select a city based on country and province/state.
    6     Version:        1.11.0
    7     Tested up to:   6.1.1
     6    Version:        1.12.0
     7    Tested up to:   6.4.3
    88    Requires PHP:   7.0
    99    Author:         Beee
     
    3636                    'db_version' => '1.0',
    3737                    'url'        => plugin_dir_url( __FILE__ ),
    38                     'version'    => '1.11.0',
     38                    'version'    => '1.12.0',
    3939                );
    4040
  • acf-city-selector/trunk/inc/acfcs-actions.php

    r2841215 r3048288  
    88        if ( false != $country_code ) {
    99            delete_transient( 'acfcs_states_' . strtolower( $country_code ) );
    10             delete_transient( 'acfcs_cities_' . strtolower( $country_code ) );
     10
     11            // get states for country code
     12            $states = acfcs_get_states( $country_code );
     13            foreach( $states as $key => $state ) {
     14                $country_code_with_state = strtolower( $key );
     15                delete_transient( 'acfcs_cities_' . $country_code_with_state );
     16            }
     17           
    1118        } else {
    1219            delete_transient( 'acfcs_countries' );
    1320            $countries = acfcs_get_countries( false, false, true );
     21
    1422            if ( ! empty( $countries ) ) {
    1523                foreach( $countries as $country_code => $label ) {
    1624                    do_action( 'acfcs_delete_transients', $country_code );
    17                     // @TODO: also add states
     25                    delete_transient( sprintf( 'acfcs_states_%s', $country_code ) );
    1826                }
    1927            }
    2028        }
    2129    }
    22     add_action( 'acfcs_delete_transients', 'acfcs_delete_transients' );
     30    add_action( 'acfcs_delete_transients', 'i will try acfcs_delete_transients' );
    2331    add_action( 'acfcs_after_success_import', 'acfcs_delete_transients' );
    2432    add_action( 'acfcs_after_success_import_raw', 'acfcs_delete_transients' );
  • acf-city-selector/trunk/readme.txt

    r2906374 r3048288  
    44Requires at least: 3.6.0
    55Requires PHP: 7.0
    6 Tested up to: 6.1.1
    7 Stable tag: 1.11.0
     6Tested up to: 6.4.3
     7Stable tag: 1.12.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242== Changelog ==
    4343
     44= 1.12.0 =
     45* Fix clear transients
     46
     47= 1.11.0 =
     48* ?
     49
    4450= 1.10.1 =
    4551* New language files
Note: See TracChangeset for help on using the changeset viewer.