Google Analyticator - Version 6.5.1

Version Description

  • Fix depricated classname constructors.
  • Fix issue with being unable to deactivate and reset from settings screen.
Download this release

Release Info

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

Code changes from version 6.5.0.0 to 6.5.1

class.analytics.stats.php CHANGED
@@ -19,7 +19,7 @@ class GoogleAnalyticsStats
19
*
20
* @param token - a one-time use token to be exchanged for a real token
21
**/
22
- function GoogleAnalyticsStats()
23
{
24
25
# Include SimplePie if it doesn't exist
19
*
20
* @param token - a one-time use token to be exchanged for a real token
21
**/
22
+ function __construct()
23
{
24
25
# Include SimplePie if it doesn't exist
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 6.5.0.0
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
@@ -12,7 +12,7 @@
12
//error_reporting(E_ALL);
13
//ini_set('display_errors', '1');
14
15
- define('GOOGLE_ANALYTICATOR_VERSION', '6.5.0');
16
17
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
18
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
@@ -271,7 +271,7 @@ function ga_do_reset()
271
{
272
global $wpdb;
273
// Check to make sure referer is same as host.
274
- check_admin_referer( 'ga-reset' );
275
276
// Delete all GA options.
277
delete_option(key_ga_status);
@@ -466,7 +466,7 @@ function ga_options_page() {
466
do_action("ga_experiment_setting_save");
467
468
// Give an updated message
469
- echo "<div class='updated fade'><p><strong>" . __('Google Analyticator settings saved.', 'google-analyticator') . "</strong></p></div>";
470
}
471
// Are we using the auth system?
472
$useAuth = ( get_option( 'ga_google_token' ) == '' ? false : true );
@@ -555,7 +555,7 @@ if(!$addons){?>
555
556
if( $useAuth ):
557
558
- $uids = ga_get_analytics_accounts();
559
560
echo "<select name='".key_ga_uid."'> ";
561
@@ -1020,9 +1020,10 @@ if(!$addons){?>
1020
<p class="submit">
1021
<input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
1022
</p>
1023
- <a href="<?php echo ga_analyticator_setting_url(). '&pageaction=ga_clear_cache' ?>"><?php _e('Clear Analyticator Cache', 'google-analyticator'); ?></a> | <a href="<?php echo admin_url('/options-general.php?page=ga_reset'); ?>">
1024
<?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
1025
</form>
1026
</div>
1027
</div>
1028
<!-- end wrap -->
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 6.5.1
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
12
//error_reporting(E_ALL);
13
//ini_set('display_errors', '1');
14
15
+ define('GOOGLE_ANALYTICATOR_VERSION', '6.5.1');
16
17
define('GOOGLE_ANALYTICATOR_CLIENTID', '1007949979410.apps.googleusercontent.com');
18
define('GOOGLE_ANALYTICATOR_CLIENTSECRET', 'q06U41XDXtzaXD14E-KO1hti'); //don't worry - this don't need to be secret in our case
271
{
272
global $wpdb;
273
// Check to make sure referer is same as host.
274
+ check_admin_referer('ga-reset');
275
276
// Delete all GA options.
277
delete_option(key_ga_status);
466
do_action("ga_experiment_setting_save");
467
468
// Give an updated message
469
+ echo "<div class='updated settings-error notice is-dismissible'><p><strong>" . __('Google Analyticator settings saved.', 'google-analyticator') . "</strong></p><button type='button' class='notice-dismiss'><span class='screen-reader-text'>Dismiss this notice.</span></button></div>";
470
}
471
// Are we using the auth system?
472
$useAuth = ( get_option( 'ga_google_token' ) == '' ? false : true );
555
556
if( $useAuth ):
557
558
+ $uids = @ga_get_analytics_accounts();
559
560
echo "<select name='".key_ga_uid."'> ";
561
1020
<p class="submit">
1021
<input type="submit" class="button button-primary" name="info_update" value="<?php _e('Save Changes', 'google-analyticator'); ?>" />
1022
</p>
1023
+ <a href="<?php echo ga_analyticator_setting_url(). '&pageaction=ga_clear_cache' ?>"><?php _e('Clear Analyticator Cache', 'google-analyticator'); ?></a> | <a href="<?php echo wp_nonce_url( admin_url('/options-general.php?page=ga_reset'), 'ga-reset'); ?>">
1024
<?php _e('Deauthorize &amp; Reset Google Analyticator.', 'google-analyticator'); ?></a>
1025
</form>
1026
+
1027
</div>
1028
</div>
1029
<!-- end wrap -->
google-analytics-stats-widget.php CHANGED
@@ -8,7 +8,7 @@
8
**/
9
class GoogleStatsWidget extends WP_Widget
10
{
11
- function GoogleStatsWidget($shortcode = FALSE) {
12
$widget_ops = array('classname' => 'widget_google_stats', 'description' => __("Displays Stat Info From Google Analytics", 'google-analyticator') );
13
$control_ops = array('width' => 400, 'height' => 400);
14
//$this->WP_Widget('googlestats', __('Google Analytics Stats', 'google-analyticator'), $widget_ops, $control_ops);
8
**/
9
class GoogleStatsWidget extends WP_Widget
10
{
11
+ function __construct($shortcode = FALSE) {
12
$widget_ops = array('classname' => 'widget_google_stats', 'description' => __("Displays Stat Info From Google Analytics", 'google-analyticator') );
13
$control_ops = array('width' => 400, 'height' => 400);
14
//$this->WP_Widget('googlestats', __('Google Analytics Stats', 'google-analyticator'), $widget_ops, $control_ops);
google-analytics-summary-widget.php CHANGED
@@ -13,7 +13,7 @@ class GoogleAnalyticsSummary
13
/**
14
* Start the process of including the widget
15
**/
16
- function GoogleAnalyticsSummary($shortcode = FALSE)
17
{
18
add_action('wp_dashboard_setup', array(
19
$this,
13
/**
14
* Start the process of including the widget
15
**/
16
+ function __construct($shortcode = FALSE)
17
{
18
add_action('wp_dashboard_setup', array(
19
$this,
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
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.6
6
- Stable tag: 6.5.0.0
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -74,6 +74,10 @@ For any support issues, please use the official WordPress support forums.
74
75
== Changelog ==
76
77
= 6.5.0.0 =
78
* Fix bug with options page not showing correctly in some cases.
79
2
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
74
75
== Changelog ==
76
77
+ = 6.5.1 =
78
+ * Fix depricated classname constructors.
79
+ * Fix issue with being unable to deactivate and reset from settings screen.
80
+
81
= 6.5.0.0 =
82
* Fix bug with options page not showing correctly in some cases.
83