- fixed Install Info settings section on PHP7.1;

- GDPR compatibility;
- added support for GDPR Personal Data Exporter;
- added support for GDPR Personal Data Eraser;
- added feature: New privacy field to form builder for GDPR consent collection;
- added GDPR privacy policy guide text;
This commit is contained in:
nikitozzzzzzz
2018-05-22 11:17:18 +03:00
parent ef82f19d16
commit 8414586f45
11 changed files with 633 additions and 4 deletions
+45
View File
@@ -485,6 +485,7 @@ if ( ! class_exists( 'UM' ) ) {
$this->ajax_init();
$this->metabox();
$this->admin_upgrade()->init_packages_ajax_handlers();
$this->admin_gdpr();
} elseif ( $this->is_request( 'admin' ) ) {
$this->admin();
$this->admin_menu();
@@ -497,6 +498,7 @@ if ( ! class_exists( 'UM' ) ) {
$this->users();
$this->dragdrop();
$this->plugin_updater();
$this->admin_gdpr();
} elseif ( $this->is_request( 'frontend' ) ) {
$this->enqueue();
$this->account();
@@ -525,6 +527,7 @@ if ( ! class_exists( 'UM' ) ) {
//$this->tracking();
$this->mobile();
$this->external_integrations();
$this->gdpr();
}
@@ -640,6 +643,48 @@ if ( ! class_exists( 'UM' ) ) {
}
/**
* GDPR privacy policy
*
* @since 2.0.14
*
* @return bool|um\admin\core\Admin_GDPR()
*/
function admin_gdpr() {
global $wp_version;
if ( version_compare( $wp_version, '4.9.6', '<' ) ) {
return false;
}
if ( empty( $this->classes['admin_gdpr'] ) ) {
$this->classes['admin_gdpr'] = new um\admin\core\Admin_GDPR();
}
return $this->classes['admin_gdpr'];
}
/**
* GDPR privacy policy
*
* @since 2.0.14
*
* @return bool|um\core\GDPR()
*/
function gdpr() {
global $wp_version;
if ( version_compare( $wp_version, '4.9.6', '<' ) ) {
return false;
}
if ( empty( $this->classes['gdpr'] ) ) {
$this->classes['gdpr'] = new um\core\GDPR();
}
return $this->classes['gdpr'];
}
/**
* @since 2.0
*