Plugin Directory

Changeset 1674804


Ignore:
Timestamp:
06/09/2017 01:57:58 PM (9 years ago)
Author:
webmasterjunkie
Message:

Upgrade to 1.1.3

Location:
ultimate-popunder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ultimate-popunder/trunk/assets/ultimate-popunder.js

    r1671296 r1674804  
    33    weighedURL = [];
    44
    5 for (var i = 0; i < URLlist.length; i++)
     5// Ensure we are defined before continuing
     6if (typeof URLlist !== 'undefined' && URLlist !== null)
    67{
    7     totalURLWeight += URLlist[i][1];
     8    for (var i = 0; i < URLlist.length; i++)
     9    {
     10        totalURLWeight += URLlist[i][1];
     11    }
     12
     13    while (currentURL < URLlist.length)
     14    {
     15        for (i = 0; i < URLlist[currentURL][1]; i++)
     16        {
     17            weighedURL[weighedURL.length] = URLlist[currentURL][0];
     18        }
     19        currentURL++
     20    }
     21
     22    var pURL = weighedURL[Math.floor(Math.random() * weighedURL.length)];
     23    if (URLlist.length > 0) {
     24        jsUnda(pURL, ultimatePopunderSettings);
     25    }
    826}
    9 
    10 while (currentURL < URLlist.length)
    11 {
    12     for (i = 0; i < URLlist[currentURL][1]; i++)
    13     {
    14         weighedURL[weighedURL.length] = URLlist[currentURL][0];
    15     }
    16     currentURL++
    17 }
    18 
    19 var pURL = weighedURL[Math.floor(Math.random() * weighedURL.length)];
    20 if (URLlist.length > 0) {
    21     jsUnda(pURL, ultimatePopunderSettings);
    22 }
  • ultimate-popunder/trunk/readme.txt

    r1674778 r1674804  
    3434
    3535== Changelog ==
     36= 1.1.3 =
     37* Fix JS error on Woocommerce @single and @shop
     38
    3639= 1.1.2 =
    3740* Bump to support 4.8
  • ultimate-popunder/trunk/ultimate-popunder.php

    r1674778 r1674804  
    55    Plugin URI: #
    66    Description: Be able to create any popunder AD for your site, and track the activity in 3rd party systems as well.
    7     Version: 1.1.2
     7    Version: 1.1.3
    88    Author: Cris Griffith
    99    Author URI: https://profiles.wordpress.org/webmasterjunkie
     
    1313defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1414
    15 define( 'ULTIMATE_POPUNDER_VERSION', '1.1.2' );
     15define( 'ULTIMATE_POPUNDER_VERSION', '1.1.3' );
    1616
    1717require_once( plugin_dir_path( __FILE__ ) . "functions.php" );
Note: See TracChangeset for help on using the changeset viewer.