Plugin Directory

Changeset 2161604


Ignore:
Timestamp:
09/23/2019 05:05:00 PM (7 years ago)
Author:
sparklit
Message:

Header bidding fixes. Supported version update.

Location:
adbutler/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • adbutler/trunk/adbutler.php

    r2092450 r2161604  
    55Plugin URI: https://wordpress.org/plugins/adbutler
    66Description: AdButler ad management system integration plugin. Simplify deployment of your ad zones with this highly effective manner of deploying your publishing needs
    7 Version: 1.24
     7Version: 1.25
    88Author: AdButler
    99Author URI: http://www.adbutler.com
     
    2323define( 'ADBUTLER_CACHEURL', ADBUTLER_URLPATH . 'cache/' );
    2424define( 'ADBUTLER_ADSERVE_URL','https://adbutler.com/external_request.spark');
    25 define( 'ADBUTLER_PLUGIN_VERSION', '1.24');
     25define( 'ADBUTLER_PLUGIN_VERSION', '1.25');
    2626
    2727
  • adbutler/trunk/includes/adbutler_header_bidding_widget.class

    r1948203 r2161604  
    171171    private function sizes_string_to_array($str)
    172172    {
    173         $strArray = explode(',', $str);
    174         $strArray = array_filter($strArray, function ($str) { return trim($str) == false; });
    175         return array_map(function ($str) { return explode('x', trim($str)); }, $strArray);
     173        $sizes = [];
     174        $sizeStrings = explode(',', $str);
     175
     176        foreach ($sizeStrings as $size) {
     177            $sizeParts = explode('x', $size);
     178            if (count($sizeParts) === 2) {
     179                $sizes[] = [intval($sizeParts[0]), intval($sizeParts[1])];
     180            }
     181        }
     182
     183        return $sizes;
    176184    }
    177185
  • adbutler/trunk/includes/adbutler_plugin.class

    r2044052 r2161604  
    557557        echo "<script type='text/javascript' src='{$protocol}{$host}/hb_app.js' async></script>";
    558558
    559         wp_enqueue_script('adbutler_hb_init', plugins_url('../js/adbutler_hb_init.js', __FILE__), [], ADBUTLER_PLUGIN_VERSION);
     559        wp_enqueue_script('adbutler_hb_init', plugins_url('../js/adbutler_hb_init.js', __FILE__), [], ADBUTLER_PLUGIN_VERSION, true);
    560560
    561561        $timeout = intval(get_option('adbutler_hb_timeout')) ?: 700;
    562562        wp_add_inline_script('adbutler_hb_init', "AdButlerHB.timeout = {$timeout};");
    563563
    564         wp_enqueue_script('adbutler_hb_final', plugins_url('../js/adbutler_hb_final.js', __FILE__), ['adbutler_hb_init'], ADBUTLER_PLUGIN_VERSION);
     564        wp_enqueue_script('adbutler_hb_final', plugins_url('../js/adbutler_hb_final.js', __FILE__), ['adbutler_hb_init'], ADBUTLER_PLUGIN_VERSION, true);
    565565    }
    566566
     
    644644            return "[{$size[0]}, {$size[1]}]";
    645645        }, array_merge([$atts['size']], $atts['additional_sizes'])));
     646
    646647        $zoneID = $atts['zone_id'];
    647648        $adbutlerID = get_option('adbutler_id');
  • adbutler/trunk/readme.txt

    r2044052 r2161604  
    44Tags: Ad serving, AdButler, Ad Server,Ad Management,Ad Rotation
    55Requires at least: 3.3
    6 Tested up to: 5.1
     6Tested up to: 5.2
    77Stable tag: trunk
    88License: GPLv2 or later
     
    6868
    6969== Changelog ==
    70 *1.22 Added Async Beta 1.1 tags. Bumped supported WordPress version.
     70*1.25 Fixed header bidding bug. Updated supported WordPress version.
     71*1.22 Added Async Beta 1.1 tags. Updated supported WordPress version.
    7172*1.21 Fixed resources not loading with https on some configurations.
    7273*1.20 Removed AdButler key config from dashboard. The key must be configured in the admin settings.
Note: See TracChangeset for help on using the changeset viewer.