Version Description
Release date: 18th february 2022 * Improved usability of the first time setup.
Download this release
Release Info
Developer | merlijnvanlent |
Plugin | WP GDPR Compliance |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- Utils/AdminHelper.php +1 -24
- WordPress/Admin/Pages/AbstractPage.php +0 -15
- readme.txt +5 -1
- wp-gdpr-compliance.php +2 -2
Utils/AdminHelper.php
CHANGED
@@ -36,35 +36,12 @@ class AdminHelper {
|
|
36 |
* @return string
|
37 |
*/
|
38 |
public static function getPageUrl( $page = '' ) {
|
39 |
-
$args =
|
40 |
-
foreach ( self::singleArgs() as $key ) {
|
41 |
-
unset( $args[ $key ] );
|
42 |
-
}
|
43 |
-
|
44 |
$args['page'] = $page;
|
45 |
|
46 |
return add_query_arg( $args, admin_url( 'admin.php' ) );
|
47 |
}
|
48 |
|
49 |
-
/**
|
50 |
-
* Lists the query args that should only be used one single time
|
51 |
-
* @return array
|
52 |
-
*/
|
53 |
-
public static function singleArgs() {
|
54 |
-
return [
|
55 |
-
Plugin::PLUGIN_SLUG . '-action',
|
56 |
-
'clone',
|
57 |
-
'delete',
|
58 |
-
'edit',
|
59 |
-
'new',
|
60 |
-
'_wpnonce',
|
61 |
-
'activate',
|
62 |
-
'plugin_status',
|
63 |
-
'tab',
|
64 |
-
'section'
|
65 |
-
];
|
66 |
-
}
|
67 |
-
|
68 |
/**
|
69 |
* Checks if the plugin is installed
|
70 |
*
|
36 |
* @return string
|
37 |
*/
|
38 |
public static function getPageUrl( $page = '' ) {
|
39 |
+
$args = [];
|
|
|
|
|
|
|
|
|
40 |
$args['page'] = $page;
|
41 |
|
42 |
return add_query_arg( $args, admin_url( 'admin.php' ) );
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
/**
|
46 |
* Checks if the plugin is installed
|
47 |
*
|
WordPress/Admin/Pages/AbstractPage.php
CHANGED
@@ -19,7 +19,6 @@ abstract class AbstractPage {
|
|
19 |
*/
|
20 |
public static function init() {
|
21 |
add_action('admin_menu', [ static::class, 'addAdminMenu' ], 9);
|
22 |
-
add_action('admin_menu', [ static::class, 'ftsURLIntercept' ], PHP_INT_MAX);
|
23 |
}
|
24 |
|
25 |
/**
|
@@ -34,20 +33,6 @@ abstract class AbstractPage {
|
|
34 |
add_action('load-' . $hook, [ static::class, 'loadPage' ]);
|
35 |
}
|
36 |
|
37 |
-
/**
|
38 |
-
* Change all the admin menu items to go to the FTS when not completed.
|
39 |
-
*/
|
40 |
-
public static function ftsURLIntercept() {
|
41 |
-
if (static::isSubMenu() || Wizard::isCompleted()) {
|
42 |
-
return;
|
43 |
-
}
|
44 |
-
|
45 |
-
global $submenu;
|
46 |
-
foreach ($submenu[static::getPageSlug()] ?? [] as $i => $item) {
|
47 |
-
$submenu[static::getPageSlug()][$i][2] = PageWizard::getPageUrl();
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
/**
|
52 |
* Loads additional actions and filters for this page only
|
53 |
*/
|
19 |
*/
|
20 |
public static function init() {
|
21 |
add_action('admin_menu', [ static::class, 'addAdminMenu' ], 9);
|
|
|
22 |
}
|
23 |
|
24 |
/**
|
33 |
add_action('load-' . $hook, [ static::class, 'loadPage' ]);
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Loads additional actions and filters for this page only
|
38 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: gdpr, law, regulations, compliance, data, protection, privacy, data protec
|
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -38,6 +38,10 @@ Get immediate access to:
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
|
|
41 |
= 2.0.7 =
|
42 |
*Release date: 30th December 2021*
|
43 |
* Admin dashboard Text changes.
|
4 |
Requires at least: 5.3
|
5 |
Tested up to: 5.9
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 2.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 2.0.8 =
|
42 |
+
*Release date: 18th february 2022*
|
43 |
+
* Improved usability of the first time setup.
|
44 |
+
|
45 |
= 2.0.7 =
|
46 |
*Release date: 30th December 2021*
|
47 |
* Admin dashboard Text changes.
|
wp-gdpr-compliance.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: This plugin helps your website stay compliant with GDPR using a free cookie pop-up.
|
6 |
* Author: Cookie Information
|
7 |
* Author URI: https://cookieinformation.com/
|
8 |
-
* Version: 2.0.
|
9 |
* Text Domain: wp-gdpr-compliance
|
10 |
* Domain Path: /Resources/languages
|
11 |
* Requires at least: 5.3
|
@@ -33,7 +33,7 @@ spl_autoload_register(__NAMESPACE__ . '\\autoload');
|
|
33 |
define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
|
34 |
define('WPGDPRC_ROOT_FILE', __FILE__);
|
35 |
define('WPGDPRC_FILE', plugin_basename(__FILE__));
|
36 |
-
define('WPGDPRC_VERSION', '2.0.
|
37 |
define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
|
38 |
|
39 |
// register activation & deactivation hook to add/remove plugin specific database options
|
5 |
* Description: This plugin helps your website stay compliant with GDPR using a free cookie pop-up.
|
6 |
* Author: Cookie Information
|
7 |
* Author URI: https://cookieinformation.com/
|
8 |
+
* Version: 2.0.8
|
9 |
* Text Domain: wp-gdpr-compliance
|
10 |
* Domain Path: /Resources/languages
|
11 |
* Requires at least: 5.3
|
33 |
define('WPGDPRC_ROOT', dirname(__FILE__) . '/');
|
34 |
define('WPGDPRC_ROOT_FILE', __FILE__);
|
35 |
define('WPGDPRC_FILE', plugin_basename(__FILE__));
|
36 |
+
define('WPGDPRC_VERSION', '2.0.8');
|
37 |
define('WPGDPRC_PREFIX', strtolower(__NAMESPACE__));
|
38 |
|
39 |
// register activation & deactivation hook to add/remove plugin specific database options
|