2019-05-26 22:50:53 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Privacy Policy Guide Screen.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** WordPress Administration Bootstrap */
|
2020-02-06 07:33:11 +01:00
|
|
|
require_once __DIR__ . '/admin.php';
|
2019-05-26 22:50:53 +02:00
|
|
|
|
|
|
|
if ( ! current_user_can( 'manage_privacy_options' ) ) {
|
2020-10-04 05:23:09 +02:00
|
|
|
wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
|
2019-05-26 22:50:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
|
2020-02-06 07:33:11 +01:00
|
|
|
include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
|
2019-05-26 22:50:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
$title = __( 'Privacy Policy Guide' );
|
|
|
|
|
|
|
|
wp_enqueue_script( 'privacy-tools' );
|
|
|
|
|
2020-02-06 07:33:11 +01:00
|
|
|
require_once ABSPATH . 'wp-admin/admin-header.php';
|
2019-05-26 22:50:53 +02:00
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="wrap">
|
|
|
|
<h1><?php echo esc_html( $title ); ?></h1>
|
2019-07-05 07:21:56 +02:00
|
|
|
|
2019-05-26 22:50:53 +02:00
|
|
|
<div class="wp-privacy-policy-guide">
|
|
|
|
<?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
|
2020-02-06 07:33:11 +01:00
|
|
|
require_once ABSPATH . 'wp-admin/admin-footer.php';
|