Plugin Directory

Changeset 1375062


Ignore:
Timestamp:
03/20/2016 03:38:51 PM (10 years ago)
Author:
errnio
Message:

Added script versioning and parameters validation

Location:
text-selection-for-mobile/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • text-selection-for-mobile/trunk/readme.txt

    r1368198 r1375062  
    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
     
    141141== Changelog ==
    142142
     143= 2.6 =
     144* Added script versioning and parameters validation
     145
    143146= 2.5 =
    144147* Simplified code on wp client side
     
    164167== Upgrade Notice ==
    165168
     169**2.6 Added script versioning and parameters validation
    166170**2.5 Simplified code on wp client side
    167171**2.4 Added handling of multiple installed errnio plugins
  • text-selection-for-mobile/trunk/tappy-related-by-errnio.php

    r1345183 r1375062  
    44Plugin URI: http://errnio.com
    55Description: Wordpress Tap to Search offers your mobile site visitors related search phrases and content at the tap of a text.
    6 Version: 2.5
     6Version: 2.6
    77Author: Errnio
    88Author URI: http://errnio.com
     
    1111/***** Constants ******/
    1212
     13define('TAPPY_SEARCHMORE_BY_ERRNIO_VERSION', '2.6');
    1314define('TAPPY_SEARCHMORE_BY_ERRNIO_INSTALLER_NAME', 'wordpress_tappy_searchmore_by_errnio');
    1415
     
    162163    $tagId = get_option(TAPPY_SEARCHMORE_BY_ERRNIO_OPTION_NAME_TAGID);
    163164
     165    if (!$tagId || empty($tagId)) {
     166        return;
     167    }
     168
    164169    $script_url = "//service.errnio.com/loader?tagid=".$tagId;
    165     wp_register_script($handle, $script_url, false, '1.0', true);
     170    wp_register_script($handle, $script_url, false, TAPPY_SEARCHMORE_BY_ERRNIO_VERSION, true);
    166171    wp_enqueue_script($handle );
    167172
Note: See TracChangeset for help on using the changeset viewer.