WP GDPR Compliance - Version 1.5.9

Version Description

Release date: August 17th, 2021 * Bugfix: Multisite settings pages from other plugins disappeared or appeared when they shouldn't

Download this release

Release Info

Developer merlijnvanlent
Plugin Icon 128x128 WP GDPR Compliance
Version 1.5.9
Comparing to
See all releases

Code changes from version 1.5.8 to 1.5.9

Includes/Admin/FTSPage.php CHANGED
@@ -69,13 +69,12 @@ class FTSPage
69
  */
70
  public function __construct()
71
  {
72
- if (!current_user_can('manage_options'))
73
  return;
 
74
 
75
  // set the global screen var to stop some notices from popping up in helper/util functions
76
  require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
77
- if (!isset($GLOBALS['current_screen']))
78
- $GLOBALS['current_screen'] = \WP_Screen::get(true);
79
 
80
  if (!$this->checkFtsIsDone() && $this->shouldShowFts()) {
81
 
@@ -85,8 +84,9 @@ class FTSPage
85
  add_action('admin_notices', [$this, 'ftsNotice']);
86
  }
87
 
88
- if (!$this->isFts() || ! $this->shouldShowFts())
89
  return;
 
90
 
91
  // Register the page for the fts.
92
  add_action('admin_menu', [$this, 'addFtsPage']);
@@ -99,7 +99,7 @@ class FTSPage
99
  */
100
  public function addFtsPage()
101
  {
102
- add_dashboard_page('', '', 'manage_options', self::PAGE_IDENTIFIER, '');
103
  }
104
 
105
  /**
69
  */
70
  public function __construct()
71
  {
72
+ if (!current_user_can('manage_options')) {
73
  return;
74
+ }
75
 
76
  // set the global screen var to stop some notices from popping up in helper/util functions
77
  require_once ABSPATH . 'wp-admin/includes/class-wp-screen.php';
 
 
78
 
79
  if (!$this->checkFtsIsDone() && $this->shouldShowFts()) {
80
 
84
  add_action('admin_notices', [$this, 'ftsNotice']);
85
  }
86
 
87
+ if (!$this->isFts() || ! $this->shouldShowFts()) {
88
  return;
89
+ }
90
 
91
  // Register the page for the fts.
92
  add_action('admin_menu', [$this, 'addFtsPage']);
99
  */
100
  public function addFtsPage()
101
  {
102
+ add_submenu_page(str_replace('-', '_', WP_GDPR_C_SLUG), '','', 'manage_options', self::PAGE_IDENTIFIER, array($this, 'renderFtsPage'));
103
  }
104
 
105
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protec
4
  Requires at least: 4.5
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
- Stable tag: 1.5.8
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,7 +14,7 @@ This plugin assists website owners to comply with European privacy regulations (
14
 
15
  NEWS! Over the following months, we will provide a series of free upgrades to this plugin and even start offering premium features targeted to business users. Planned features include cookie scanning, language support for 40+ languages, and much more. To enable this, we are happy to announce that WP GDPR Compliance has been acquired by the leading Consent Management Platform, [Cookie Information](https://cookieinformation.com/?utm_campaign=van-ons-go-premium&utm_source=van-ons-wp&utm_medium=referral), who will lead the future development of the plug-in.
16
 
17
- [Upgrade to premium now for 30 days free and without a credit card](https://cookieinformation.com/wpgdpr-premium-cookie-banner/?utm_campaign=van-ons-go-premium&utm_source=van-ons-wp&utm_medium=referral)
18
 
19
  This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. Activating this plugin does not guarantee your site fully complies with GDPR.
20
 
@@ -48,6 +48,10 @@ You'll find answers to many of your questions on [https://www.wpgdprc.com/faq/](
48
 
49
  == Changelog ==
50
 
 
 
 
 
51
  = 1.5.8 =
52
  *Release date: August 13th, 2021*
53
  * Restart FTS again link
4
  Requires at least: 4.5
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
+ Stable tag: 1.5.9
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  NEWS! Over the following months, we will provide a series of free upgrades to this plugin and even start offering premium features targeted to business users. Planned features include cookie scanning, language support for 40+ languages, and much more. To enable this, we are happy to announce that WP GDPR Compliance has been acquired by the leading Consent Management Platform, [Cookie Information](https://cookieinformation.com/?utm_campaign=van-ons-go-premium&utm_source=van-ons-wp&utm_medium=referral), who will lead the future development of the plug-in.
16
 
17
+ [Upgrade to business now for 30 days free and without a credit card](https://cookieinformation.com/wp-gdpr-business-cookie-banner/?utm_campaign=van-ons-go-premium&utm_source=van-ons-wp&utm_medium=referral)
18
 
19
  This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. Activating this plugin does not guarantee your site fully complies with GDPR.
20
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.5.9 =
52
+ *Release date: August 17th, 2021*
53
+ * Bugfix: Multisite settings pages from other plugins disappeared or appeared when they shouldn't
54
+
55
  = 1.5.8 =
56
  *Release date: August 13th, 2021*
57
  * Restart FTS again link
wp-gdpr-compliance.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP GDPR Compliance
5
  Plugin URI: https://www.wpgdprc.com/
6
  Description: This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
7
- Version: 1.5.8
8
  Author: Cookie Information
9
  Author URI: https://cookieinformation.com/
10
  License: GPL2
4
  Plugin Name: WP GDPR Compliance
5
  Plugin URI: https://www.wpgdprc.com/
6
  Description: This plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your website or shop has to comply to avoid large fines.
7
+ Version: 1.5.9
8
  Author: Cookie Information
9
  Author URI: https://cookieinformation.com/
10
  License: GPL2