Google Analytics Dashboard for WP (GADWP) - Version 4.4.7

Version Description

  • Bugfix: fatal error in plugin settings screen, under certain circumstances
  • Bugfix: fix refresh interval for backend stats
Download this release

Release Info

Developer deconf
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 4.4.7
Comparing to
See all releases

Code changes from version 4.4.6 to 4.4.7

admin/ajax-actions.php CHANGED
@@ -66,6 +66,14 @@ if (! class_exists('GADASH_Backend_Ajax')) {
66
  } else {
67
  wp_die(- 24);
68
  }
 
 
 
 
 
 
 
 
69
  switch ($query) {
70
  case 'referrers':
71
  $this->send_json($GADASH_GAPI->get_referrers($projectId, $from, $to));
66
  } else {
67
  wp_die(- 24);
68
  }
69
+
70
+ $profile_info = $tools->get_selected_profile($GADASH_Config->options['ga_dash_profile_list'], $projectId);
71
+ if (isset($profile_info[4])) {
72
+ $GADASH_GAPI->timeshift = $profile_info[4];
73
+ } else {
74
+ $GADASH_GAPI->timeshift = (int) current_time('timestamp') - time();
75
+ }
76
+
77
  switch ($query) {
78
  case 'referrers':
79
  $this->send_json($GADASH_GAPI->get_referrers($projectId, $from, $to));
front/ajax-actions.php CHANGED
@@ -76,9 +76,6 @@ if (! class_exists('GADASH_Frontend_Ajax')) {
76
  } else {
77
  $GADASH_GAPI->timeshift = (int) current_time('timestamp') - time();
78
  }
79
- if (! $GADASH_GAPI->client->getAccessToken()) {
80
- wp_die(- 25);
81
- }
82
  switch ($query) {
83
  case 'pageviews':
84
  $this->send_json($GADASH_GAPI->frontend_afterpost_pageviews($projectId, $page_url, $post_id));
@@ -137,9 +134,6 @@ if (! class_exists('GADASH_Frontend_Ajax')) {
137
  } else {
138
  $GADASH_GAPI->timeshift = (int) current_time('timestamp') - time();
139
  }
140
- if (! $GADASH_GAPI->client->getAccessToken()) {
141
- wp_die(- 25);
142
- }
143
  $this->send_json($GADASH_GAPI->frontend_widget_stats($projectId, $period, (int) $instance['anonim']));
144
  }
145
  }
76
  } else {
77
  $GADASH_GAPI->timeshift = (int) current_time('timestamp') - time();
78
  }
 
 
 
79
  switch ($query) {
80
  case 'pageviews':
81
  $this->send_json($GADASH_GAPI->frontend_afterpost_pageviews($projectId, $page_url, $post_id));
134
  } else {
135
  $GADASH_GAPI->timeshift = (int) current_time('timestamp') - time();
136
  }
 
 
 
137
  $this->send_json($GADASH_GAPI->frontend_widget_stats($projectId, $period, (int) $instance['anonim']));
138
  }
139
  }
gadwp.php CHANGED
@@ -4,10 +4,10 @@
4
  * Plugin URI: https://deconf.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: Alin Marcu
7
- * Version: 4.4.6
8
  * Author URI: https://deconf.com
9
  */
10
- define('GADWP_CURRENT_VERSION', '4.4.6');
11
  /*
12
  * Include Install
13
  */
4
  * Plugin URI: https://deconf.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: Alin Marcu
7
+ * Version: 4.4.7
8
  * Author URI: https://deconf.com
9
  */
10
+ define('GADWP_CURRENT_VERSION', '4.4.7');
11
  /*
12
  * Include Install
13
  */
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: deconf
3
  Donate link: https://deconf.com/donate/
4
  Tags: google,analytics,google analytics,dashboard,analytics dashboard,google analytics dashboard,google analytics widget,tracking,realtime,wpmu,multisite
5
  Requires at least: 3.0
6
- Tested up to: 4.1
7
- Stable tag: 4.4.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -126,6 +126,10 @@ This plugin it's released under the GPLv2, you can use it free of charge on your
126
 
127
  == Changelog ==
128
 
 
 
 
 
129
  = 4.4.6 =
130
  - Bugfix: maintain compatibility with WordPress 3.0+
131
 
3
  Donate link: https://deconf.com/donate/
4
  Tags: google,analytics,google analytics,dashboard,analytics dashboard,google analytics dashboard,google analytics widget,tracking,realtime,wpmu,multisite
5
  Requires at least: 3.0
6
+ Tested up to: 4.1.1
7
+ Stable tag: 4.4.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
126
 
127
  == Changelog ==
128
 
129
+ = 4.4.7 =
130
+ - Bugfix: fatal error in plugin settings screen, under certain circumstances
131
+ - Bugfix: fix refresh interval for backend stats
132
+
133
  = 4.4.6 =
134
  - Bugfix: maintain compatibility with WordPress 3.0+
135
 
tools/gapi.php CHANGED
@@ -12,7 +12,7 @@ if (! class_exists('GADASH_GAPI')) {
12
  public $client, $service;
13
  public $country_codes;
14
  public $timeshift;
15
- private $error_timeout;
16
  private $managequota;
17
 
18
  function __construct()
12
  public $client, $service;
13
  public $country_codes;
14
  public $timeshift;
15
+ public $error_timeout;
16
  private $managequota;
17
 
18
  function __construct()