Google Analytics - Version 2.5.1

Version Description

  • Revert array syntax for back compat.
  • Update plugin name for trademark infringement.
Download this release

Release Info

Developer ShareThis
Plugin Icon wp plugin Google Analytics
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

googleanalytics.php CHANGED
@@ -1,10 +1,9 @@
1
  <?php
2
-
3
  /*
4
- * Plugin Name: Google Analytics
5
  * Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
6
  * Description: Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
7
- * Version: 2.5.0
8
  * Author: ShareThis
9
  * Author URI: http://sharethis.com
10
  */
1
  <?php
 
2
  /*
3
+ * Plugin Name: ShareThis Dashboard for Google Analytics
4
  * Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
5
  * Description: Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
6
+ * Version: 2.5.1
7
  * Author: ShareThis
8
  * Author URI: http://sharethis.com
9
  */
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Google Analytics ===
2
  Contributors: sharethis, scottstorebloom
3
  Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
4
  Requires at least: 3.8
5
- Tested up to: 5.7
6
- Stable tag: 2.5.0
7
 
8
  Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
9
 
@@ -114,6 +114,10 @@ If you’re using Google Analytics on your WordPress website or a plugin like th
114
 
115
  == Changelog ==
116
 
 
 
 
 
117
  = 2.5.0 =
118
  * Fix enable button on disable all features.
119
  * Add demographic ad in settings.
1
+ === ShareThis Dashboard for Google Analytics ===
2
  Contributors: sharethis, scottstorebloom
3
  Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
4
  Requires at least: 3.8
5
+ Tested up to: 5.7.1
6
+ Stable tag: 2.5.1
7
 
8
  Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
9
 
114
 
115
  == Changelog ==
116
 
117
+ = 2.5.1 =
118
+ * Revert array syntax for back compat.
119
+ * Update plugin name for trademark infringement.
120
+
121
  = 2.5.0 =
122
  * Fix enable button on disable all features.
123
  * Add demographic ad in settings.
tools/class-support-logging.php CHANGED
@@ -80,7 +80,7 @@ class Ga_SupportLogger {
80
  $body = $debug_help_message['message'];
81
  $body .= $debug_help_message['let-debug'] ? $let_debug_message : '';
82
 
83
- self::$debug_info = ['message' => $body, 'debug' => $debug_help_message['let-debug']];
84
  } else {
85
  $body = 'Debug Info:' . PHP_EOL . PHP_EOL;
86
  $body .= implode( $this->get_debug_info(), PHP_EOL );
@@ -95,47 +95,47 @@ class Ga_SupportLogger {
95
 
96
  switch ($error) {
97
  case 'invalid_grant':
98
- return [
99
  'message' => 'Hi! It looks like you submitted the wrong authentication grant. Please try again by re-authenticating.',
100
  'let-debug' => true
101
- ];
102
  break;
103
  case 'SSL certificate problem: unable to get local issuer certificate (60)':
104
- return [
105
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
106
  'let-debug' => false
107
- ];
108
  break;
109
  case 'SSL certificate problem: unable to get local issuer certificate':
110
- return [
111
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
112
  'let-debug' => false
113
- ];
114
  break;
115
  case 'User does not have any Google Analytics account.':
116
- return [
117
  'message' => 'Hi! Looks like we’re not able to find a Google Analytics account. Please double check to make sure the Google account you used to authenticate with has a working Google Analytics account setup.',
118
  'let-debug' => false
119
- ];
120
  break;
121
  case 'SSL certificate problem: certificate has expired (60)':
122
- return [
123
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
124
  'let-debug' => false
125
- ];
126
  break;
127
  case 'SSL certificate problem, verify that the CA cert is OK':
128
- return [
129
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
130
  'let-debug' => false
131
- ];
132
  break;
133
  }
134
 
135
- return [
136
  'message' => 'Hi! It appears something went wrong. We apologize for the inconvenience! Please try to re-authenticate your Google account and verify your site has a proper SSL certficiate.',
137
  'let-debug' => true
138
- ];
139
  }
140
 
141
  /**
80
  $body = $debug_help_message['message'];
81
  $body .= $debug_help_message['let-debug'] ? $let_debug_message : '';
82
 
83
+ self::$debug_info = array('message' => $body, 'debug' => $debug_help_message['let-debug']);
84
  } else {
85
  $body = 'Debug Info:' . PHP_EOL . PHP_EOL;
86
  $body .= implode( $this->get_debug_info(), PHP_EOL );
95
 
96
  switch ($error) {
97
  case 'invalid_grant':
98
+ return array(
99
  'message' => 'Hi! It looks like you submitted the wrong authentication grant. Please try again by re-authenticating.',
100
  'let-debug' => true
101
+ );
102
  break;
103
  case 'SSL certificate problem: unable to get local issuer certificate (60)':
104
+ return array(
105
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
106
  'let-debug' => false
107
+ );
108
  break;
109
  case 'SSL certificate problem: unable to get local issuer certificate':
110
+ return array(
111
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
112
  'let-debug' => false
113
+ );
114
  break;
115
  case 'User does not have any Google Analytics account.':
116
+ return array(
117
  'message' => 'Hi! Looks like we’re not able to find a Google Analytics account. Please double check to make sure the Google account you used to authenticate with has a working Google Analytics account setup.',
118
  'let-debug' => false
119
+ );
120
  break;
121
  case 'SSL certificate problem: certificate has expired (60)':
122
+ return array(
123
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
124
  'let-debug' => false
125
+ );
126
  break;
127
  case 'SSL certificate problem, verify that the CA cert is OK':
128
+ return array(
129
  'message' => 'Hi! Please check your site\'s SSL certificate. A functioning SSL certificate is required',
130
  'let-debug' => false
131
+ );
132
  break;
133
  }
134
 
135
+ return array(
136
  'message' => 'Hi! It appears something went wrong. We apologize for the inconvenience! Please try to re-authenticate your Google account and verify your site has a proper SSL certficiate.',
137
  'let-debug' => true
138
+ );
139
  }
140
 
141
  /**