Plugin Directory

Changeset 1375056


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

Added script versioning and parameters validation

Location:
swipy-by-errnio/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • swipy-by-errnio/trunk/readme.txt

    r1368192 r1375056  
    155155== Changelog ==
    156156
     157= 1.7 =
     158* Added script versioning and parameters validation
     159
    157160= 1.6 =
    158161* Simplified code on wp client side
     
    181184== Upgrade Notice ==
    182185
     186**1.7 Added script versioning and parameters validation
    183187**1.6 Simplified code on wp client side
    184188**1.5 Added handling of multiple installed errnio plugins
  • swipy-by-errnio/trunk/swipy-by-errnio.php

    r1345175 r1375056  
    44Plugin URI: http://errnio.com
    55Description: Swipy offers your mobile site visitors more of your content with swipe action cards, enhancing experience, content circulation and time spent.
    6 Version: 1.6
     6Version: 1.7
    77Author: Errnio
    88Author URI: http://errnio.com
     
    1111/***** Constants ******/
    1212
     13define('SWIPY_BY_ERRNIO_VERSION', '1.7');
    1314define('SWIPY_BY_ERRNIO_INSTALLER_NAME', 'wordpress_swipy_by_errnio');
    1415
     
    162163    $tagId = get_option(SWIPY_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, SWIPY_BY_ERRNIO_VERSION, true);
    166171    wp_enqueue_script($handle );
    167172
Note: See TracChangeset for help on using the changeset viewer.