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