Version Description
-
Enhancements:
- Updates dependency libraries.
- Confirms compatibility with WordPress 5.1 and 5.2.
-
Enhancements:
- Updates dependency libraries.
- Confirms compatibility with WordPress 5.0.
- Replaces "Cheating Huh?"" with "You dont have permission to do this" to align the error message with recent WP core changes. (core.trac.wordpress.org/ticket/38332)
Download this release
Release Info
Developer | chriscct7 |
Plugin | Google Analytics Dashboard for WP (GADWP) |
Version | 5.3.8 |
Comparing to | |
See all releases |
Code changes from version 5.3.7 to 5.3.8
- admin/class-am-notification.php +20 -5
- gadwp.php +2 -2
- readme.txt +7 -3
admin/class-am-notification.php
CHANGED
@@ -94,9 +94,24 @@ if ( ! class_exists( 'AM_Notification', false ) ) {
|
|
94 |
return;
|
95 |
}
|
96 |
|
97 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
-
if ( $
|
100 |
$plugin_notifications = $this->get_plugin_notifications( 1 );
|
101 |
$notification_id = null;
|
102 |
|
@@ -158,7 +173,7 @@ if ( ! class_exists( 'AM_Notification', false ) ) {
|
|
158 |
}
|
159 |
|
160 |
// Set the option now so we can't run this again until after 24 hours.
|
161 |
-
update_option( '_amn_' . $this->plugin . '
|
162 |
}
|
163 |
}
|
164 |
|
@@ -355,7 +370,7 @@ if ( ! class_exists( 'AM_Notification', false ) ) {
|
|
355 |
$type = MonsterInsights()->license->get_network_license_type();
|
356 |
}
|
357 |
|
358 |
-
// Check key fallbacks
|
359 |
if ( empty( $key ) ) {
|
360 |
$key = MonsterInsights()->license->get_license_key();
|
361 |
}
|
@@ -394,7 +409,7 @@ if ( ! class_exists( 'AM_Notification', false ) ) {
|
|
394 |
// Possibly set the level to 'unknown' if a key is entered, but no level can be determined (such as manually entered key)
|
395 |
if ( ! empty( $key ) && empty( $level ) ) {
|
396 |
$level = 'unknown';
|
397 |
-
}
|
398 |
|
399 |
// Normalize the level.
|
400 |
switch ( $level ) {
|
94 |
return;
|
95 |
}
|
96 |
|
97 |
+
$to_check = get_option( '_amn_' . $this->plugin . '_to_check', false );
|
98 |
+
|
99 |
+
if ( $to_check == false ) {
|
100 |
+
// Non load balanced. Start checking in in 7 days + 2-4 days.
|
101 |
+
$checktime = array();
|
102 |
+
$checktime['day'] = rand( 0, 6 );
|
103 |
+
$checktime['hour'] = rand( 0, 23 );
|
104 |
+
$checktime['minute'] = rand( 0, 59 );
|
105 |
+
$checktime['second'] = rand( 0, 59 );
|
106 |
+
$checktime['offset'] = ( $checktime['day'] * DAY_IN_SECONDS ) +
|
107 |
+
( $checktime['hour'] * HOUR_IN_SECONDS ) +
|
108 |
+
( $checktime['minute'] * MINUTE_IN_SECONDS ) +
|
109 |
+
$checktime['second'];
|
110 |
+
$to_check = strtotime("next sunday") + $checktime['offset'];
|
111 |
+
update_option( '_amn_' . $this->plugin . '_to_check', $to_check );
|
112 |
+
}
|
113 |
|
114 |
+
if ( $to_check < time() ) {
|
115 |
$plugin_notifications = $this->get_plugin_notifications( 1 );
|
116 |
$notification_id = null;
|
117 |
|
173 |
}
|
174 |
|
175 |
// Set the option now so we can't run this again until after 24 hours.
|
176 |
+
update_option( '_amn_' . $this->plugin . '_to_check', time() + 3 * DAY_IN_SECONDS );
|
177 |
}
|
178 |
}
|
179 |
|
370 |
$type = MonsterInsights()->license->get_network_license_type();
|
371 |
}
|
372 |
|
373 |
+
// Check key fallbacks.
|
374 |
if ( empty( $key ) ) {
|
375 |
$key = MonsterInsights()->license->get_license_key();
|
376 |
}
|
409 |
// Possibly set the level to 'unknown' if a key is entered, but no level can be determined (such as manually entered key)
|
410 |
if ( ! empty( $key ) && empty( $level ) ) {
|
411 |
$level = 'unknown';
|
412 |
+
}
|
413 |
|
414 |
// Normalize the level.
|
415 |
switch ( $level ) {
|
gadwp.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://exactmetrics.com
|
5 |
* Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
|
6 |
* Author: ExactMetrics
|
7 |
-
* Version: 5.3.
|
8 |
* Author URI: https://exactmetrics.com
|
9 |
* Text Domain: google-analytics-dashboard-for-wp
|
10 |
* Domain Path: /languages
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) )
|
|
16 |
|
17 |
// Plugin Version
|
18 |
if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
|
19 |
-
define( 'GADWP_CURRENT_VERSION', '5.3.
|
20 |
}
|
21 |
|
22 |
if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
|
4 |
* Plugin URI: https://exactmetrics.com
|
5 |
* Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
|
6 |
* Author: ExactMetrics
|
7 |
+
* Version: 5.3.8
|
8 |
* Author URI: https://exactmetrics.com
|
9 |
* Text Domain: google-analytics-dashboard-for-wp
|
10 |
* Domain Path: /languages
|
16 |
|
17 |
// Plugin Version
|
18 |
if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
|
19 |
+
define( 'GADWP_CURRENT_VERSION', '5.3.8' );
|
20 |
}
|
21 |
|
22 |
if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: chriscct7, smub
|
|
3 |
Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
4 |
Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget,gtag
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 5.3.
|
8 |
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -167,7 +167,11 @@ Google Analytics Dashboard for WP it's released under the GPLv2, you can use it
|
|
167 |
|
168 |
[GADWP v5.3 release notes](https://exactmetrics.com/adding-gtag-js-to-your-site/)
|
169 |
|
170 |
-
= 5.3.
|
|
|
|
|
|
|
|
|
171 |
* Enhancements:
|
172 |
* Updates dependency libraries.
|
173 |
* Confirms compatibility with WordPress 5.0.
|
3 |
Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
4 |
Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget,gtag
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 5.2
|
7 |
+
Stable tag: 5.3.8
|
8 |
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
167 |
|
168 |
[GADWP v5.3 release notes](https://exactmetrics.com/adding-gtag-js-to-your-site/)
|
169 |
|
170 |
+
= 5.3.8 =
|
171 |
+
* Enhancements:
|
172 |
+
* Updates dependency libraries.
|
173 |
+
* Confirms compatibility with WordPress 5.1 and 5.2.
|
174 |
+
|
175 |
* Enhancements:
|
176 |
* Updates dependency libraries.
|
177 |
* Confirms compatibility with WordPress 5.0.
|