Plugin Directory

Changeset 1282723


Ignore:
Timestamp:
11/09/2015 07:07:19 PM (10 years ago)
Author:
adblockx
Message:

Prod release

Location:
adblock-x/trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • adblock-x/trunk/adblock-x.php

    r1278934 r1282723  
    33* Plugin Name: AdBlock X
    44* Plugin URI: http://www.adblockx.com
    5 * Version: 1.0.5
     5* Version: 1.0.6
    66* Description: Plugin designed to help you examine ad-blockers' impact on your website(s). Registration required, see Settings -> AdBlock X
    77* Author: DDC Inc.
     
    1212defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1313
    14 define( 'DDC_ABX_PLUGIN_VER', '1.0.5' );
     14define( 'DDC_ABX_PLUGIN_VER', '1.0.6' );
    1515define( 'DDC_ABX_PLUGIN_URI', plugins_url('', __FILE__) );
    1616define( 'DDC_ABX_PLUGIN_DIR', trailingslashit( dirname(__FILE__) ) );
     
    3939        }
    4040
    41         $php_vars = array(
    42             'site_scheme' => $wp_url_arr['scheme'],
    43             'site_path' => $wp_url_arr['host'] . $wp_url_arr['path'],
    44             'tracking_code' => $tracking_code,
    45             'site_url' => get_site_url()
     41        $path = isset($wp_url_arr['path']) ? $wp_url_arr['path'] : "";
     42        $abx = array(
     43            'sp' => $wp_url_arr['host'] . $path,
     44            'tc' => $tracking_code
    4645        );
    4746
    48         wp_enqueue_script( 'ddc-abx', DDC_ABX_PLUGIN_URI . '/js/abx_detect.js', array(), DDC_ABX_PLUGIN_VER, false );
    49         wp_localize_script( 'ddc-abx', 'abx_php_vars', $php_vars );
     47        wp_enqueue_script( 'ddc-abx', DDC_ABX_PLUGIN_URI . '/js/abx.js', array(), DDC_ABX_PLUGIN_VER, false );
     48        wp_localize_script( 'ddc-abx', 'abx', $abx );
    5049    }
    5150
  • adblock-x/trunk/readme.txt

    r1278934 r1282723  
    5555== Changelog ==
    5656
     57= 1.0.6 =
     58* optimized plugin footprint
     59
    5760= 1.0.5 =
    5861* fix various UI bugs
Note: See TracChangeset for help on using the changeset viewer.