Changeset 3048288
- Timestamp:
- 03/09/2024 03:31:01 PM (2 years ago)
- Location:
- acf-city-selector/trunk
- Files:
-
- 3 edited
-
ACF_City_Selector.php (modified) (2 diffs)
-
inc/acfcs-actions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-city-selector/trunk/ACF_City_Selector.php
r2906374 r3048288 4 4 Plugin URI: https://acf-city-selector.com 5 5 Description: An extension for ACF which allows you to select a city based on country and province/state. 6 Version: 1.1 1.07 Tested up to: 6. 1.16 Version: 1.12.0 7 Tested up to: 6.4.3 8 8 Requires PHP: 7.0 9 9 Author: Beee … … 36 36 'db_version' => '1.0', 37 37 'url' => plugin_dir_url( __FILE__ ), 38 'version' => '1.1 1.0',38 'version' => '1.12.0', 39 39 ); 40 40 -
acf-city-selector/trunk/inc/acfcs-actions.php
r2841215 r3048288 8 8 if ( false != $country_code ) { 9 9 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 11 18 } else { 12 19 delete_transient( 'acfcs_countries' ); 13 20 $countries = acfcs_get_countries( false, false, true ); 21 14 22 if ( ! empty( $countries ) ) { 15 23 foreach( $countries as $country_code => $label ) { 16 24 do_action( 'acfcs_delete_transients', $country_code ); 17 // @TODO: also add states 25 delete_transient( sprintf( 'acfcs_states_%s', $country_code ) ); 18 26 } 19 27 } 20 28 } 21 29 } 22 add_action( 'acfcs_delete_transients', ' acfcs_delete_transients' );30 add_action( 'acfcs_delete_transients', 'i will try acfcs_delete_transients' ); 23 31 add_action( 'acfcs_after_success_import', 'acfcs_delete_transients' ); 24 32 add_action( 'acfcs_after_success_import_raw', 'acfcs_delete_transients' ); -
acf-city-selector/trunk/readme.txt
r2906374 r3048288 4 4 Requires at least: 3.6.0 5 5 Requires PHP: 7.0 6 Tested up to: 6. 1.17 Stable tag: 1.1 1.06 Tested up to: 6.4.3 7 Stable tag: 1.12.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 == Changelog == 43 43 44 = 1.12.0 = 45 * Fix clear transients 46 47 = 1.11.0 = 48 * ? 49 44 50 = 1.10.1 = 45 51 * New language files
Note: See TracChangeset
for help on using the changeset viewer.