Plugin Directory

Changeset 1375043


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

Added script versioning and parameters validation

Location:
mobile-zoom-by-errnio/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobile-zoom-by-errnio/trunk/mobile-zoom-by-errnio.php

    r1345149 r1375043  
    44Plugin URI: http://errnio.com
    55Description: Zoom by errnio enhances the mobile zoom experience on any image on your wordpress site, offering better zoom, sharing, and image discovery.
    6 Version: 1.5
     6Version: 1.6
    77Author: Errnio
    88Author URI: http://errnio.com
     
    1111/***** Constants ******/
    1212
     13define('ZOOMY_BY_ERRNIO_VERSION', '1.6');
    1314define('ZOOMY_BY_ERRNIO_INSTALLER_NAME', 'wordpress_zoomy_by_errnio');
    1415
     
    162163    $tagId = get_option(ZOOMY_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, ZOOMY_BY_ERRNIO_VERSION, true);
    166171    wp_enqueue_script($handle );
    167172    $prev_post = get_adjacent_post( false, '', true);
  • mobile-zoom-by-errnio/trunk/readme.txt

    r1370139 r1375043  
    55Requires at least: 3.0
    66Tested up to: 4.4
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152== Changelog ==
    153153
     154= 1.6 =
     155* Added script versioning and parameters validation
     156
    154157= 1.5 =
    155158* Simplified code on wp client side
     
    182185**1.4 Added handling of multiple installed errnio plugins
    183186**1.5 Simplified code on wp client side
     187**1.6 Added script versioning and parameters validation
Note: See TracChangeset for help on using the changeset viewer.