WD Google Analytics - Version 1.1.8

Version Description

  • Fixed: Escaping of custom tracking code
  • Fixed: PHP notices in pages without global $post variable
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Google Analytics
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

assets/logo.png DELETED
Binary file
assets/seo_logo.png ADDED
Binary file
google-analytics-wd.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
  /**
4
- * Plugin Name: Google Analytics
5
  * Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
6
- * Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
7
- * Version: 1.1.7
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -26,7 +26,7 @@ if (!defined('GAWD_INC')) {
26
  }
27
 
28
  if (!defined('GAWD_VERSION')) {
29
- define('GAWD_VERSION', '1.1.7');
30
  }
31
 
32
 
@@ -290,32 +290,32 @@ if (!function_exists('gawd_wd_bp_install_notice')) {
290
  }
291
 
292
  $prefix = 'gawd';
293
- $meta_value = get_option('wd_bk_notice_status');
294
  if ($meta_value === '' || $meta_value === false) {
295
  ob_start();
296
  ?>
297
  <div class="notice notice-info" id="wd_bp_notice_cont">
298
  <p>
299
- <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/assets/logo.png'; ?>">
300
- <?php _e("Google Analytics WD advises: Install brand new FREE", $prefix) ?>
301
- <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
302
- target="_blank"><?php _e("Backup WD", $prefix) ?></a>
303
- <?php _e("plugin to keep your images and website safe.", $prefix) ?>
304
  <a class="button button-primary"
305
- href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
306
  <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
307
  </a>
308
  </p>
309
  <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
310
  </button>
311
  </div>
312
- <script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
313
  <?php
314
  echo ob_get_clean();
315
  }
316
  }
317
 
318
- if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'backup-wd')) {
319
  add_action('admin_notices', 'gawd_wd_bp_install_notice');
320
  }
321
 
@@ -326,9 +326,9 @@ if (!function_exists('gawd_wd_bp_install_notice')) {
326
  * 1 : never show again
327
  */
328
  function gawd_wd_bp_install_notice_status() {
329
- update_option('wd_bk_notice_status', '1', 'no');
330
  }
331
- add_action('wp_ajax_wd_bp_dismiss', 'gawd_wd_bp_install_notice_status');
332
  }
333
 
334
 
1
  <?php
2
 
3
  /**
4
+ * Plugin Name: WD Google Analytics
5
  * Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
6
+ * Description: WD Google Analytics is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
7
+ * Version: 1.1.8
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
26
  }
27
 
28
  if (!defined('GAWD_VERSION')) {
29
+ define('GAWD_VERSION', '1.1.8');
30
  }
31
 
32
 
290
  }
291
 
292
  $prefix = 'gawd';
293
+ $meta_value = get_option('wd_seo_notice_status');
294
  if ($meta_value === '' || $meta_value === false) {
295
  ob_start();
296
  ?>
297
  <div class="notice notice-info" id="wd_bp_notice_cont">
298
  <p>
299
+ <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/assets/seo_logo.png'; ?>">
300
+ <?php _e("Google Analytics WD advises: Optimize your web pages for search engines with the", $prefix) ?>
301
+ <a href="https://wordpress.org/plugins/seo-by-10web/" title="<?php _e("More details", $prefix) ?>"
302
+ target="_blank"><?php _e("FREE SEO", $prefix) ?></a>
303
+ <?php _e("plugin.", $prefix) ?>
304
  <a class="button button-primary"
305
+ href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=seo-by-10web'), 'install-plugin_seo-by-10web')); ?>">
306
  <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
307
  </a>
308
  </p>
309
  <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
310
  </button>
311
  </div>
312
+ <script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
313
  <?php
314
  echo ob_get_clean();
315
  }
316
  }
317
 
318
+ if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'seo-by-10web')) {
319
  add_action('admin_notices', 'gawd_wd_bp_install_notice');
320
  }
321
 
326
  * 1 : never show again
327
  */
328
  function gawd_wd_bp_install_notice_status() {
329
+ update_option('wd_seo_notice_status', '1', 'no');
330
  }
331
+ add_action('wp_ajax_wd_seo_dismiss', 'gawd_wd_bp_install_notice_status');
332
  }
333
 
334
 
inc/css/wd_bp_install.css CHANGED
@@ -8,7 +8,7 @@
8
  }
9
 
10
  #wd_bp_logo_notice {
11
- width: 40px;
12
  float: left;
13
  margin-right: 10px;
14
  }
8
  }
9
 
10
  #wd_bp_logo_notice {
11
+ width: 50px;
12
  float: left;
13
  margin-right: 10px;
14
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado
3
  Tags: google analytics, statistics, tracking, analytics dashboard, ga, google analytics dashboard, analytics, stats, googleanalytics, ecommerce tracking, custom reports, custom dimensions
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
- Stable tag: 1.1.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -102,6 +102,10 @@ Upgrade to Google Analytics WD Pro for premium features:
102
 
103
  == Changelog ==
104
 
 
 
 
 
105
  = 1.1.7 =
106
  * Changed: Deactivation popup.
107
 
3
  Tags: google analytics, statistics, tracking, analytics dashboard, ga, google analytics dashboard, analytics, stats, googleanalytics, ecommerce tracking, custom reports, custom dimensions
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
+ Stable tag: 1.1.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
102
 
103
  == Changelog ==
104
 
105
+ = 1.1.8 =
106
+ * Fixed: Escaping of custom tracking code
107
+ * Fixed: PHP notices in pages without global $post variable
108
+
109
  = 1.1.7 =
110
  * Changed: Deactivation popup.
111