Google Analytics for WordPress by MonsterInsights - Version 3.0.1

Version Description

  • Removed no longer needed code to add config page that caused PHP warnings.
Download this release

Release Info

Developer joostdevalk
Plugin Icon 128x128 Google Analytics for WordPress by MonsterInsights
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0 to 3.0.1

Files changed (2) hide show
  1. googleanalytics.php +4 -8
  2. readme.txt +4 -1
googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
4
  Plugin URI: http://yoast.com/wordpress/analytics/
5
  Description: This plugin makes it simple to add Google Analytics with extra search engines and automatic clickout and download tracking to your WordPress blog.
6
  Author: Joost de Valk
7
- Version: 3.0
8
  Requires at least: 2.7
9
  Author URI: http://yoast.com/
10
  License: GPL
@@ -290,16 +290,16 @@ if ( ! class_exists( 'GA_Admin' ) ) {
290
  <?php
291
  if (isset($options['uastring'])) {
292
  if ($options['uastring'] == "") {
293
- add_action('admin_footer', array('GA_Admin','warning'));
294
  } else {
295
  if (isset($_POST['submit'])) {
296
  if ($_POST['uastring'] != $options['uastring'] ) {
297
- add_action('admin_footer', array('GA_Admin','success'));
298
  }
299
  }
300
  }
301
  } else {
302
- add_action('admin_footer', array('GA_Admin','warning'));
303
  }
304
  } // end config_page()
305
 
@@ -592,10 +592,6 @@ if ($options == "") {
592
  update_option('GoogleAnalyticsPP',$options);
593
  }
594
 
595
- // adds the menu item to the admin interface
596
- add_action('admin_menu', array('GA_Admin','add_config_page'));
597
- add_action('admin_menu', array('GA_Admin','add_config_page'));
598
-
599
  if ($options['trackoutbound']) {
600
  // filters alter the existing content
601
  add_filter('the_content', array('GA_Filter','the_content'), 99);
4
  Plugin URI: http://yoast.com/wordpress/analytics/
5
  Description: This plugin makes it simple to add Google Analytics with extra search engines and automatic clickout and download tracking to your WordPress blog.
6
  Author: Joost de Valk
7
+ Version: 3.0.1
8
  Requires at least: 2.7
9
  Author URI: http://yoast.com/
10
  License: GPL
290
  <?php
291
  if (isset($options['uastring'])) {
292
  if ($options['uastring'] == "") {
293
+ add_action('admin_footer', array(&$this,'warning'));
294
  } else {
295
  if (isset($_POST['submit'])) {
296
  if ($_POST['uastring'] != $options['uastring'] ) {
297
+ add_action('admin_footer', array(&$this,'success'));
298
  }
299
  }
300
  }
301
  } else {
302
+ add_action('admin_footer', array(&$this,'warning'));
303
  }
304
  } // end config_page()
305
 
592
  update_option('GoogleAnalyticsPP',$options);
593
  }
594
 
 
 
 
 
595
  if ($options['trackoutbound']) {
596
  // filters alter the existing content
597
  add_filter('the_content', array('GA_Filter','the_content'), 99);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.7
6
  Tested up to: 2.8.2
7
- Stable tag: 3.0
8
 
9
  The Google Analytics for WordPress plugin automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It also allows you to track AdSense clicks, add extra search engines, track image search queries and it will even work together with Urchin.
10
 
@@ -29,6 +29,9 @@ This section describes how to install the plugin and get it working.
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 3.0 =
33
  * Major backend overhaul, using new Yoast backend class.
34
  * Added ability to automatically redirect non hashtagged campaign URLs to hashtagged campaign URL's when setAllowAnchor is set to true (if you don't get it, forget about it, you might need it but don't need to worry)
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.7
6
  Tested up to: 2.8.2
7
+ Stable tag: 3.0.1
8
 
9
  The Google Analytics for WordPress plugin automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It also allows you to track AdSense clicks, add extra search engines, track image search queries and it will even work together with Urchin.
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 3.0.1 =
33
+ * Removed no longer needed code to add config page that caused PHP warnings.
34
+
35
  = 3.0 =
36
  * Major backend overhaul, using new Yoast backend class.
37
  * Added ability to automatically redirect non hashtagged campaign URLs to hashtagged campaign URL's when setAllowAnchor is set to true (if you don't get it, forget about it, you might need it but don't need to worry)