WD Google Analytics - Version 1.2.12

Version Description

  • Fixed: PHP warnings.
  • Fixed: Compatibility with PHP 8.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 WD Google Analytics
Version 1.2.12
Comparing to
See all releases

Code changes from version 1.2.11 to 1.2.12

config.php CHANGED
@@ -13,7 +13,7 @@ if(!defined('GAWD_DIR')) {
13
  define('GWD_NAME', plugin_basename(dirname(__FILE__)));
14
  define('GAWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
  define('GAWD_INC', GAWD_URL . '/inc');
16
- define('GAWD_VERSION', '1.2.11');
17
 
18
  $upload_dir = wp_upload_dir();
19
  define('GAWD_UPLOAD_DIR', $upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__)));
13
  define('GWD_NAME', plugin_basename(dirname(__FILE__)));
14
  define('GAWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
  define('GAWD_INC', GAWD_URL . '/inc');
16
+ define('GAWD_VERSION', '1.2.12');
17
 
18
  $upload_dir = wp_upload_dir();
19
  define('GAWD_UPLOAD_DIR', $upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__)));
google-analytics-wd.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: 10WebAnalytics
4
  * Plugin URI: https://10web.io/plugins/wordpress-google-analytics/
5
- * Version: 1.2.11
6
  * Author: 10Web
7
  * Author URI: https://10web.io/plugins/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -217,7 +217,7 @@ With a large number of detailed and user-friendly reports, 10Web Analytics plugi
217
  }
218
  }
219
 
220
- add_filter('wp_get_default_privacy_policy_content', 'gawd_privacy_policy');
221
  function gawd_privacy_policy($content){
222
  $title = __('10Web Analytics', "gawd");
223
 
2
  /**
3
  * Plugin Name: 10WebAnalytics
4
  * Plugin URI: https://10web.io/plugins/wordpress-google-analytics/
5
+ * Version: 1.2.12
6
  * Author: 10Web
7
  * Author URI: https://10web.io/plugins/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
217
  }
218
  }
219
 
220
+ add_filter('admin_init', 'gawd_privacy_policy');
221
  function gawd_privacy_policy($content){
222
  $title = __('10Web Analytics', "gawd");
223
 
google/src/Google/Service/Resource.php CHANGED
@@ -288,7 +288,7 @@ class Google_Service_Resource
288
  }
289
 
290
  if (count($queryVars)) {
291
- $requestUrl .= '?' . implode($queryVars, '&');
292
  }
293
 
294
  return $requestUrl;
288
  }
289
 
290
  if (count($queryVars)) {
291
+ $requestUrl .= '?' . implode('&',$queryVars);
292
  }
293
 
294
  return $requestUrl;
google/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php CHANGED
@@ -194,7 +194,7 @@ class MessageFactory implements MessageFactoryInterface
194
  case 'allow_redirects':
195
 
196
  if ($value === false) {
197
- continue;
198
  }
199
 
200
  if ($value === true) {
@@ -213,7 +213,7 @@ class MessageFactory implements MessageFactoryInterface
213
  case 'decode_content':
214
 
215
  if ($value === false) {
216
- continue;
217
  }
218
 
219
  $config['decode_content'] = true;
@@ -251,7 +251,7 @@ class MessageFactory implements MessageFactoryInterface
251
  case 'auth':
252
 
253
  if (!$value) {
254
- continue;
255
  }
256
 
257
  if (is_array($value)) {
@@ -354,7 +354,7 @@ class MessageFactory implements MessageFactoryInterface
354
  if (isset($this->customOptions[$key])) {
355
  $fn = $this->customOptions[$key];
356
  $fn($request, $value);
357
- continue;
358
  }
359
 
360
  throw new Iae("No method can handle the {$key} config key");
194
  case 'allow_redirects':
195
 
196
  if ($value === false) {
197
+ continue 2;
198
  }
199
 
200
  if ($value === true) {
213
  case 'decode_content':
214
 
215
  if ($value === false) {
216
+ continue 2;
217
  }
218
 
219
  $config['decode_content'] = true;
251
  case 'auth':
252
 
253
  if (!$value) {
254
+ continue 2;
255
  }
256
 
257
  if (is_array($value)) {
354
  if (isset($this->customOptions[$key])) {
355
  $fn = $this->customOptions[$key];
356
  $fn($request, $value);
357
+ continue 2;
358
  }
359
 
360
  throw new Iae("No method can handle the {$key} config key");
google/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php CHANGED
@@ -360,7 +360,7 @@ class CurlFactory
360
  unset($options[CURLOPT_CAINFO]);
361
  $options[CURLOPT_SSL_VERIFYHOST] = 0;
362
  $options[CURLOPT_SSL_VERIFYPEER] = false;
363
- continue;
364
  }
365
 
366
  $options[CURLOPT_SSL_VERIFYHOST] = 2;
@@ -379,7 +379,7 @@ class CurlFactory
379
  case 'decode_content':
380
 
381
  if ($value === false) {
382
- continue;
383
  }
384
 
385
  $accept = Core::firstHeader($request, 'Accept-Encoding');
360
  unset($options[CURLOPT_CAINFO]);
361
  $options[CURLOPT_SSL_VERIFYHOST] = 0;
362
  $options[CURLOPT_SSL_VERIFYPEER] = false;
363
+ continue 2;
364
  }
365
 
366
  $options[CURLOPT_SSL_VERIFYHOST] = 2;
379
  case 'decode_content':
380
 
381
  if ($value === false) {
382
+ continue 2;
383
  }
384
 
385
  $accept = Core::firstHeader($request, 'Accept-Encoding');
library/gawd-google-class.php CHANGED
@@ -12,7 +12,7 @@ class GAWD_google {
12
 
13
  private $gawd_last_viewed_profile_data = array();
14
 
15
- public function __construct($access_token = "", $refresh_token = "", $gawd_ajax_instance){
16
  $this->gawd_last_viewed_profile_data = get_option("gawd_last_viewed_profile");
17
 
18
  $this->access_token = $access_token;
12
 
13
  private $gawd_last_viewed_profile_data = array();
14
 
15
+ public function __construct($access_token = "", $refresh_token = "", $gawd_ajax_instance = ""){
16
  $this->gawd_last_viewed_profile_data = get_option("gawd_last_viewed_profile");
17
 
18
  $this->access_token = $access_token;
library/gawd-helper-class.php CHANGED
@@ -604,7 +604,7 @@ class GAWD_helper {
604
  return $return_data;
605
  }
606
 
607
- public function tw_sanitize_text($val){
608
  if(is_array($val)){
609
  return self::validate_string_array($val);
610
  }
604
  return $return_data;
605
  }
606
 
607
+ public static function tw_sanitize_text($val){
608
  if(is_array($val)){
609
  return self::validate_string_array($val);
610
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: 10web
3
  Requires at least: 3.9
4
  Tested up to: 5.6
5
- Stable tag: 1.2.11
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
@@ -25,6 +25,10 @@ https://www.youtube.com/watch?v=n1f7ECVFNPI
25
 
26
  == Changelog ==
27
 
 
 
 
 
28
  = 1.2.11 =
29
  * Changed: Remove deactivation popup.
30
  * Fixed: Audience tab view.
2
  Contributors: 10web
3
  Requires at least: 3.9
4
  Tested up to: 5.6
5
+ Stable tag: 1.2.12
6
  License: GPLv2 or later
7
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
 
25
 
26
  == Changelog ==
27
 
28
+ = 1.2.12 =
29
+ * Fixed: PHP warnings.
30
+ * Fixed: Compatibility with PHP 8.
31
+
32
  = 1.2.11 =
33
  * Changed: Remove deactivation popup.
34
  * Fixed: Audience tab view.