Plugin Directory

Changeset 1375033


Ignore:
Timestamp:
03/20/2016 02:53:17 PM (10 years ago)
Author:
errnio
Message:

Added script versioning and parameters validation

Location:
errnio-search-for-mobile/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • errnio-search-for-mobile/trunk/errnio.php

    r1345128 r1375033  
    44Plugin URI: http://errnio.com
    55Description: The errnio Wordpress Mobile Web Search plugin adds a floating search box to your site, creating far better search experience for mobile.
    6 Version: 2.5
     6Version: 2.6
    77Author: Errnio
    88Author URI: http://errnio.com
     
    1111/***** Constants ******/
    1212
     13define('SEARCHY_BY_ERRNIO_VERSION', '2.6');
    1314define('SEARCHY_BY_ERRNIO_INSTALLER_NAME', 'wordpress_searchy_by_errnio');
    1415
     
    187188    $tagId = get_option(SEARCHY_BY_ERRNIO_OPTION_NAME_TAGID);
    188189
     190    if (!$tagId || empty($tagId)) {
     191        return;
     192    }
     193
    189194    $script_url = "//service.errnio.com/loader?tagid=".$tagId;
    190     wp_register_script($handle, $script_url, false, '1.0', true);
     195    wp_register_script($handle, $script_url, false, SEARCHY_BY_ERRNIO_VERSION, true);
    191196    wp_enqueue_script($handle );
    192197
  • errnio-search-for-mobile/trunk/readme.txt

    r1368180 r1375033  
    55Requires at least: 3.0
    66Tested up to: 4.4
    7 Stable tag: 2.5
     7Stable tag: 2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 2.6 =
     140* Added script versioning and parameters validation
     141
    139142= 2.5 =
    140143* Simplified code on wp client side
     
    173176== Upgrade Notice ==
    174177
     1782.6 Added script versioning and parameters validation
     179
    1751802.5 Simplified code on wp client side
    176181
Note: See TracChangeset for help on using the changeset viewer.