Plugin Directory

Changeset 2065466


Ignore:
Timestamp:
04/09/2019 03:01:55 AM (7 years ago)
Author:
second2none
Message:

Update 2.0.7

Location:
service-area-postcode-checker
Files:
25 added
4 edited

Legend:

Unmodified
Added
Removed
  • service-area-postcode-checker/trunk/my-services-postcode-checker.php

    r2063572 r2065466  
    44Plugin URI: http://wordpress.plustime.com.au/service-area-postcode-checker/
    55Description: 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.6
     6Version: 2.0.7
    77Text Domain: sapc-domain
    88Author: second2none
     
    4343    $current_screen = get_current_screen();
    4444    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 );
    4747    }
    4848}
     
    5050
    5151function 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' );
    5353    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' );
    5555}
    5656add_action( 'wp_enqueue_scripts', 'sapc_scripts_with_jquery' );
     
    114114    update_option( 'sapc_checker_settings_options' ,            $checker_option );
    115115    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' );
    117117
    118118   
  • service-area-postcode-checker/trunk/options.php

    r2046660 r2065466  
    597597    $lists = get_option( 'sapc_list_settings_options' );
    598598    $get_list = $postcode->returnListFromLabel( $lists['postcodesLists'] , $_POST['list'] );
    599     if( $get_list === false ){
     599    if( ! $get_list ){
    600600        echo json_encode( array( 'Error' , __( 'Invalid List - Contact Admin', 'sapc-domain' ) ) , JSON_FORCE_OBJECT );
    601601        die();   
  • service-area-postcode-checker/trunk/php_libraries/postcode_class.php

    r2046660 r2065466  
    1515        $check = $this->checkPostcode();
    1616        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' ) );   
    1818        }
    1919       
     
    106106    function checkPostcodeArray( $postcode ){
    107107        $details = $this->returnPostcodeDetails( $postcode );
    108         return ( fnmatch( $details['Postcode'] , $this->search ) );
     108        return ( fnmatch( strtolower( $details['Postcode'] ) , strtolower( $this->search ) ) );
    109109    }
    110110}
  • service-area-postcode-checker/trunk/readme.txt

    r2061261 r2065466  
    55Tags: postcode checker, business service area checker, postcode search, customer delivery areas, postcode, search
    66Requires at least: 4.9.6
    7 Tested up to: 5.0.3
    8 Stable tag: 2.0.6
     7Tested up to: 5.1.1
     8Stable tag: 2.0.7
    99Requires PHP: 7.0.10
    1010License: GPLv2 or later
     
    134134== Changelog ==
    135135
     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
    136142= 2.0.6 =
    137143* Added Update Placeholder Text from Options Page, Widget and Shortcode
     
    208214
    209215= 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
    210221* Added Update Placeholder Text from Options Page, Widget and Shortcode
    211222* Removed PHP Deprecated Create_Function 
Note: See TracChangeset for help on using the changeset viewer.