Plugin Directory

Changeset 909009


Ignore:
Timestamp:
05/06/2014 02:31:33 PM (12 years ago)
Author:
cwhitmore
Message:

v1.0.1 - Fixed bug with plugin folder that didn't allow plugin to load.

Location:
universal-analytics
Files:
27 added
2 edited

Legend:

Unmodified
Added
Removed
  • universal-analytics/trunk/readme.txt

    r908678 r909009  
    44Requires at least: 3.0
    55Tested up to: 3.9
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88
     
    4545* Initial release.
    4646
     47= 1.0.1 =
     48* Fixed bug with plugin folder that didn't allow plugin to load.
     49
    4750== Upgrade Notice ==
    4851
    4952= 1.0.0 =
    5053* Initial release.
     54
     55= 1.0.1 =
     56* Fixed bug with plugin folder that didn't allow plugin to load.
  • universal-analytics/trunk/universalanalytics.php

    r908674 r909009  
    44Plugin URI: http://wordpress.org/extend/plugins/universal-analytics/
    55Description: A simple method to add Google's Universal Analytics JavaScript tracking code to your WordPress website.
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: Matchbox Design Group
    88Author URI: http://matchboxdesigngroup.com/
     
    2424  delete_option('plugin_switch');
    2525  delete_option('track_links');
    26   delete_option('enable_display'); 
     26  delete_option('enable_display');
    2727  delete_option('anonymize_ip');
    2828  delete_option('tracking_off_for_this_role');
     
    3838// Load the options page (the markup)
    3939function mdg_options_page_google_universal_analytics() {
    40   include(WP_PLUGIN_DIR.'/wp-universal-analytics/options.php'); 
     40  include(WP_PLUGIN_DIR.'/universal-analytics/options.php');
    4141}
    4242
     
    5151        if($hook != $settings_page && $hook != $settings_page1)
    5252        return;
    53        
     53
    5454        // Register styles
    55         wp_register_style( 'bootstrap-css', plugins_url( 'wp-universal-analytics/bootstrap/css/bootstrap.min.css' , dirname(__FILE__) ) );
    56         wp_register_style( 'bootstrap-switch-css', plugins_url( 'wp-universal-analytics/bootstrap/css/bootstrap-switch.min.css' , dirname(__FILE__) ) );
    57         wp_register_style( 'main-css', plugins_url( 'wp-universal-analytics/assets/gua-main.css' , dirname(__FILE__) ) );
     55        wp_register_style( 'bootstrap-css', plugins_url( 'universal-analytics/bootstrap/css/bootstrap.min.css' , dirname(__FILE__) ) );
     56        wp_register_style( 'bootstrap-switch-css', plugins_url( 'universal-analytics/bootstrap/css/bootstrap-switch.min.css' , dirname(__FILE__) ) );
     57        wp_register_style( 'main-css', plugins_url( 'universal-analytics/assets/gua-main.css' , dirname(__FILE__) ) );
    5858
    5959        // Register scripts
    6060        wp_register_script( 'google-js', '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', array(), '', true );
    61         wp_register_script( 'bootstrap-js', plugins_url( 'wp-universal-analytics/bootstrap/js/bootstrap.min.js' , dirname(__FILE__) ), array('google-js'), '', true );
    62         wp_register_script( 'bootstrap-switch-js', plugins_url( 'wp-universal-analytics/bootstrap/js/bootstrap-switch.min.js' , dirname(__FILE__) ) , array('bootstrap-js'),'',true );
    63         wp_register_script( 'main-js', plugins_url( 'wp-universal-analytics/assets/gua-main.js' , dirname(__FILE__) ) , array('google-js'),'',true );
     61        wp_register_script( 'bootstrap-js', plugins_url( 'universal-analytics/bootstrap/js/bootstrap.min.js' , dirname(__FILE__) ), array('google-js'), '', true );
     62        wp_register_script( 'bootstrap-switch-js', plugins_url( 'universal-analytics/bootstrap/js/bootstrap-switch.min.js' , dirname(__FILE__) ) , array('bootstrap-js'),'',true );
     63        wp_register_script( 'main-js', plugins_url( 'universal-analytics/assets/gua-main.js' , dirname(__FILE__) ) , array('google-js'),'',true );
    6464
    6565        // Enqueue styles
     
    7878
    7979if (is_admin()) {
    80   add_action('admin_enqueue_scripts', 'mdg_google_universal_analytics_scripts');       
     80  add_action('admin_enqueue_scripts', 'mdg_google_universal_analytics_scripts');
    8181  add_action('admin_menu', 'mdg_admin_menu_google_universal_analytics');
    8282}
     
    132132        $tracking_off_for_this_role = $_REQUEST['tracking_off_for_this_role'];
    133133        $tracking_off_for_role = $_REQUEST['tracking_off_for_role'];
    134        
     134
    135135        update_option('web_property_id', $property_id);
    136136    update_option('in_footer', $in_footer);
Note: See TracChangeset for help on using the changeset viewer.