Version Description
- Fix php error notice issue.
Download this release
Release Info
Developer | ShareThis |
Plugin | Google Analytics |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1.0 to 3.1.1
- googleanalytics.php +12 -4
- readme.txt +5 -2
googleanalytics.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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: 3.1.
|
7 |
* Author: ShareThis
|
8 |
* Author URI: http://sharethis.com
|
9 |
*
|
@@ -76,9 +76,9 @@ if ( version_compare( phpversion(), '7.4', '>=' ) ) {
|
|
76 |
add_action( 'init', 'Ga_Helper::init' );
|
77 |
} else {
|
78 |
if ( defined( 'WP_CLI' ) ) {
|
79 |
-
WP_CLI::warning(
|
80 |
} else {
|
81 |
-
add_action( 'admin_notices', '
|
82 |
}
|
83 |
}
|
84 |
|
@@ -87,6 +87,14 @@ if ( version_compare( phpversion(), '7.4', '>=' ) ) {
|
|
87 |
*
|
88 |
* @return string
|
89 |
*/
|
90 |
-
function
|
91 |
return __( 'ShareThis Dashboard for Google Analytics plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 7.4 or higher.', 'googlanalytics' );
|
92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 3.1.1
|
7 |
* Author: ShareThis
|
8 |
* Author URI: http://sharethis.com
|
9 |
*
|
76 |
add_action( 'init', 'Ga_Helper::init' );
|
77 |
} else {
|
78 |
if ( defined( 'WP_CLI' ) ) {
|
79 |
+
WP_CLI::warning( _google_analytics_php_version_text() );
|
80 |
} else {
|
81 |
+
add_action( 'admin_notices', '_google_analytics_php_version_error' );
|
82 |
}
|
83 |
}
|
84 |
|
87 |
*
|
88 |
* @return string
|
89 |
*/
|
90 |
+
function _google_analytics_php_version_text() {
|
91 |
return __( 'ShareThis Dashboard for Google Analytics plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 7.4 or higher.', 'googlanalytics' );
|
92 |
}
|
93 |
+
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Admin notice for incompatible versions of PHP.
|
97 |
+
*/
|
98 |
+
function _google_analytics_php_version_error() {
|
99 |
+
printf( '<div class="error"><p>%s</p></div>', esc_html( _google_analytics_php_version_text() ) );
|
100 |
+
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: sharethis, scottstorebloom, scottmweaver
|
|
3 |
Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
|
4 |
Requires at least: 5.2
|
5 |
Tested up to: 6.0.2
|
6 |
-
Stable tag: 3.1.
|
7 |
-
Version: 3.1.
|
8 |
|
9 |
Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
|
10 |
|
@@ -142,6 +142,9 @@ Google has already switched to supporting Google Analytics 4. However, you can s
|
|
142 |
|
143 |
== Changelog ==
|
144 |
|
|
|
|
|
|
|
145 |
= 3.1.0 =
|
146 |
* Fix chart starting at 0.
|
147 |
* Enable GA4 for public use.
|
3 |
Tags: analytics, google analytics, google analytics plugin, google analytics widget, google analytics dashboard
|
4 |
Requires at least: 5.2
|
5 |
Tested up to: 6.0.2
|
6 |
+
Stable tag: 3.1.1
|
7 |
+
Version: 3.1.1
|
8 |
|
9 |
Use Google Analytics on your WordPress site without touching any code, and view visitor reports right in your WordPress admin dashboard!
|
10 |
|
142 |
|
143 |
== Changelog ==
|
144 |
|
145 |
+
= 3.1.1 =
|
146 |
+
* Fix php error notice issue.
|
147 |
+
|
148 |
= 3.1.0 =
|
149 |
* Fix chart starting at 0.
|
150 |
* Enable GA4 for public use.
|