Changeset 2065466
- Timestamp:
- 04/09/2019 03:01:55 AM (7 years ago)
- Location:
- service-area-postcode-checker
- Files:
-
- 25 added
- 4 edited
-
tags/2.0.7 (added)
-
tags/2.0.7/assets (added)
-
tags/2.0.7/assets/banner-772x250-rtl.png (added)
-
tags/2.0.7/assets/banner-772x250.png (added)
-
tags/2.0.7/assets/icon-256x256.png (added)
-
tags/2.0.7/assets/screenshot-1.png (added)
-
tags/2.0.7/assets/screenshot-2.png (added)
-
tags/2.0.7/assets/screenshot-3.png (added)
-
tags/2.0.7/assets/screenshot-4.png (added)
-
tags/2.0.7/assets/screenshot-5.png (added)
-
tags/2.0.7/assets/screenshot-6.png (added)
-
tags/2.0.7/assets/screenshot-7.png (added)
-
tags/2.0.7/css (added)
-
tags/2.0.7/css/admin_page_css.css (added)
-
tags/2.0.7/css/my_services_postcode_checker.css (added)
-
tags/2.0.7/js (added)
-
tags/2.0.7/js/my_services_postcode_checker.js (added)
-
tags/2.0.7/js/sapc_admin.js (added)
-
tags/2.0.7/my-services-postcode-checker.php (added)
-
tags/2.0.7/my-services-postcode-display-widget.php (added)
-
tags/2.0.7/my-services-postcode-widget.php (added)
-
tags/2.0.7/options.php (added)
-
tags/2.0.7/php_libraries (added)
-
tags/2.0.7/php_libraries/postcode_class.php (added)
-
tags/2.0.7/readme.txt (added)
-
trunk/my-services-postcode-checker.php (modified) (4 diffs)
-
trunk/options.php (modified) (1 diff)
-
trunk/php_libraries/postcode_class.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service-area-postcode-checker/trunk/my-services-postcode-checker.php
r2063572 r2065466 4 4 Plugin URI: http://wordpress.plustime.com.au/service-area-postcode-checker/ 5 5 Description: Customizable plugin that creates an input box to allow your vistors to check if you service or deliver to their area through a postcode check. 6 Version: 2.0. 66 Version: 2.0.7 7 7 Text Domain: sapc-domain 8 8 Author: second2none … … 43 43 $current_screen = get_current_screen(); 44 44 if( strpos( $current_screen->base , 'sapc_options' ) !== false ) { 45 wp_enqueue_style( 'sapc_admin_css' , plugins_url( 'css/admin_page_css.css' , __FILE__ ) , false , '2.0. 6' , 'all' );46 wp_enqueue_script( 'sapc_admin_js' , plugins_url( 'js/sapc_admin.js' , __FILE__ ) , array( 'jquery') , '2.0. 6' , true );45 wp_enqueue_style( 'sapc_admin_css' , plugins_url( 'css/admin_page_css.css' , __FILE__ ) , false , '2.0.7' , 'all' ); 46 wp_enqueue_script( 'sapc_admin_js' , plugins_url( 'js/sapc_admin.js' , __FILE__ ) , array( 'jquery') , '2.0.7' , true ); 47 47 } 48 48 } … … 50 50 51 51 function sapc_scripts_with_jquery(){ 52 wp_enqueue_script( 'postcode-checker' , plugins_url( '/js/my_services_postcode_checker.js' , __FILE__ ) , array( 'jquery' ) , '2.0. 6' );52 wp_enqueue_script( 'postcode-checker' , plugins_url( '/js/my_services_postcode_checker.js' , __FILE__ ) , array( 'jquery' ) , '2.0.7' ); 53 53 wp_localize_script( 'postcode-checker' , 'sapc_CHECKER' , array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) ); 54 wp_enqueue_style( 'sapc_css' , plugins_url( '/css/my_services_postcode_checker.css' , __FILE__ ) , false , '2.0. 6' , 'all' );54 wp_enqueue_style( 'sapc_css' , plugins_url( '/css/my_services_postcode_checker.css' , __FILE__ ) , false , '2.0.7' , 'all' ); 55 55 } 56 56 add_action( 'wp_enqueue_scripts', 'sapc_scripts_with_jquery' ); … … 114 114 update_option( 'sapc_checker_settings_options' , $checker_option ); 115 115 update_option( 'sapc_checker_settings_submit_options', $submit_option ); 116 update_option( 'sapc_version' , '2.0. 6' );116 update_option( 'sapc_version' , '2.0.7' ); 117 117 118 118 -
service-area-postcode-checker/trunk/options.php
r2046660 r2065466 597 597 $lists = get_option( 'sapc_list_settings_options' ); 598 598 $get_list = $postcode->returnListFromLabel( $lists['postcodesLists'] , $_POST['list'] ); 599 if( $get_list === false){599 if( ! $get_list ){ 600 600 echo json_encode( array( 'Error' , __( 'Invalid List - Contact Admin', 'sapc-domain' ) ) , JSON_FORCE_OBJECT ); 601 601 die(); -
service-area-postcode-checker/trunk/php_libraries/postcode_class.php
r2046660 r2065466 15 15 $check = $this->checkPostcode(); 16 16 if( ! is_array( $check ) || empty( $check ) ){ 17 return array( 'Result' => false, 'Error' => __( ' Postcode Not Found', 'sapc-domain' ) );17 return array( 'Result' => false, 'Error' => __( '', 'sapc-domain' ) ); 18 18 } 19 19 … … 106 106 function checkPostcodeArray( $postcode ){ 107 107 $details = $this->returnPostcodeDetails( $postcode ); 108 return ( fnmatch( $details['Postcode'] , $this->search) );108 return ( fnmatch( strtolower( $details['Postcode'] ) , strtolower( $this->search ) ) ); 109 109 } 110 110 } -
service-area-postcode-checker/trunk/readme.txt
r2061261 r2065466 5 5 Tags: postcode checker, business service area checker, postcode search, customer delivery areas, postcode, search 6 6 Requires at least: 4.9.6 7 Tested up to: 5. 0.38 Stable tag: 2.0. 67 Tested up to: 5.1.1 8 Stable tag: 2.0.7 9 9 Requires PHP: 7.0.10 10 10 License: GPLv2 or later … … 134 134 == Changelog == 135 135 136 = 2.0.7 = 137 * Fixed Plugin Header Issue 138 * Removed "Postcode Not Foun" in error message 139 * Added case insensitive check for postcodes. 140 141 136 142 = 2.0.6 = 137 143 * Added Update Placeholder Text from Options Page, Widget and Shortcode … … 208 214 209 215 = 2.0.6 = 216 = 2.0.7 = 217 * Fixed Plugin Header Issue 218 * Removed "Postcode Not Foun" in error message 219 * Added case insensitive check for postcodes. 220 210 221 * Added Update Placeholder Text from Options Page, Widget and Shortcode 211 222 * Removed PHP Deprecated Create_Function
Note: See TracChangeset
for help on using the changeset viewer.