Google Analyticator - Version 6.5.3

Version Description

  • Use wp_get_current_user() instead of get_currentuserinfo()
Download this release

Release Info

Developer grimmdude
Plugin Icon 128x128 Google Analyticator
Version 6.5.3
Comparing to
See all releases

Code changes from version 6.5.2 to 6.5.3

Files changed (2) hide show
  1. google-analyticator.php +2 -3
  2. readme.txt +3 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 6.5.2
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: SumoMe
@@ -1285,8 +1285,7 @@ function ga_current_user_is($roles)
1285
{
1286
if ( !$roles ) return false;
1287
1288
- global $current_user;
1289
- get_currentuserinfo();
1290
$user_id = intval( $current_user->ID );
1291
1292
if ( !$user_id ) {
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 6.5.3
5
* Plugin URI: http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin you need to authenticate with Google, then select your domain and you're set.
7
* Author: SumoMe
1285
{
1286
if ( !$roles ) return false;
1287
1288
+ $current_user = wp_get_current_user();
1289
$user_id = intval( $current_user->ID );
1290
1291
if ( !$user_id ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: noahkagan
3
Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
Requires at least: 3.2
5
Tested up to: 4.7
6
- Stable tag: 6.5.1
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -73,6 +73,8 @@ For any support issues, please use the official WordPress support forums.
73
74
75
== Changelog ==
76
77
= 6.5.2 =
78
* Small fix to widget markup.
3
Tags: google analytics plugin, stats, statistics, google, analytics, dashboard, google analytics, tracking, widget, marketing,pageviews,visits, web stats, javascript
4
Requires at least: 3.2
5
Tested up to: 4.7
6
+ Stable tag: 6.5.3
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
73
74
75
== Changelog ==
76
+ = 6.5.3 =
77
+ * Use wp_get_current_user() instead of get_currentuserinfo()
78
79
= 6.5.2 =
80
* Small fix to widget markup.