Edit File by line
/home/barbar84/www/wp-admin
File: privacy-policy-guide.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Privacy Policy Guide Screen.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/** WordPress Administration Bootstrap */
[8] Fix | Delete
require_once __DIR__ . '/admin.php';
[9] Fix | Delete
[10] Fix | Delete
if ( ! current_user_can( 'manage_privacy_options' ) ) {
[11] Fix | Delete
wp_die( __( 'Sorry, you are not allowed to manage privacy options on this site.' ) );
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
[15] Fix | Delete
include_once ABSPATH . 'wp-admin/includes/class-wp-privacy-policy-content.php';
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
add_filter(
[19] Fix | Delete
'admin_body_class',
[20] Fix | Delete
function( $body_class ) {
[21] Fix | Delete
$body_class .= ' privacy-settings ';
[22] Fix | Delete
[23] Fix | Delete
return $body_class;
[24] Fix | Delete
}
[25] Fix | Delete
);
[26] Fix | Delete
[27] Fix | Delete
wp_enqueue_script( 'privacy-tools' );
[28] Fix | Delete
[29] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[30] Fix | Delete
[31] Fix | Delete
?>
[32] Fix | Delete
<div class="privacy-settings-header">
[33] Fix | Delete
<div class="privacy-settings-title-section">
[34] Fix | Delete
<h1>
[35] Fix | Delete
<?php _e( 'Privacy' ); ?>
[36] Fix | Delete
</h1>
[37] Fix | Delete
</div>
[38] Fix | Delete
[39] Fix | Delete
<nav class="privacy-settings-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
[40] Fix | Delete
<a href="<?php echo esc_url( admin_url( 'options-privacy.php' ) ); ?>" class="privacy-settings-tab">
[41] Fix | Delete
<?php
[42] Fix | Delete
/* translators: Tab heading for Site Health Status page. */
[43] Fix | Delete
_ex( 'Settings', 'Privacy Settings' );
[44] Fix | Delete
?>
[45] Fix | Delete
</a>
[46] Fix | Delete
[47] Fix | Delete
<a href="<?php echo esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) ); ?>" class="privacy-settings-tab active" aria-current="true">
[48] Fix | Delete
<?php
[49] Fix | Delete
/* translators: Tab heading for Site Health Status page. */
[50] Fix | Delete
_ex( 'Policy Guide', 'Privacy Settings' );
[51] Fix | Delete
?>
[52] Fix | Delete
</a>
[53] Fix | Delete
</nav>
[54] Fix | Delete
</div>
[55] Fix | Delete
[56] Fix | Delete
<hr class="wp-header-end">
[57] Fix | Delete
[58] Fix | Delete
<div class="notice notice-error hide-if-js">
[59] Fix | Delete
<p><?php _e( 'The Privacy Settings require JavaScript.' ); ?></p>
[60] Fix | Delete
</div>
[61] Fix | Delete
[62] Fix | Delete
<div class="privacy-settings-body hide-if-no-js">
[63] Fix | Delete
<h2><?php _e( 'Privacy Policy Guide' ); ?></h2>
[64] Fix | Delete
<h3 class="section-title"><?php _e( 'Introduction' ); ?></h3>
[65] Fix | Delete
<p><?php _e( 'This text template will help you to create your web site&#8217;s privacy policy.' ); ?></p>
[66] Fix | Delete
<p><?php _e( 'We have suggested the sections you will need. Under each section heading you will find a short summary of what information you should provide, which will help you to get started. Some sections include suggested policy content, others will have to be completed with information from your theme and plugins.' ); ?></p>
[67] Fix | Delete
<p><?php _e( 'Please edit your privacy policy content, making sure to delete the summaries, and adding any information from your theme and plugins. Once you publish your policy page, remember to add it to your navigation menu.' ); ?></p>
[68] Fix | Delete
<p><?php _e( 'It is your responsibility to write a comprehensive privacy policy, to make sure it reflects all national and international legal requirements on privacy, and to keep your policy current and accurate.' ); ?></p>
[69] Fix | Delete
<div class="privacy-settings-accordion">
[70] Fix | Delete
<h4 class="privacy-settings-accordion-heading">
[71] Fix | Delete
<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-privacy-policy-guide" type="button">
[72] Fix | Delete
<span class="title"><?php _e( 'Privacy Policy Guide' ); ?></span>
[73] Fix | Delete
<span class="icon"></span>
[74] Fix | Delete
</button>
[75] Fix | Delete
</h4>
[76] Fix | Delete
<div id="privacy-settings-accordion-block-privacy-policy-guide" class="privacy-settings-accordion-panel" hidden="hidden">
[77] Fix | Delete
<?php
[78] Fix | Delete
$content = WP_Privacy_Policy_Content::get_default_content( true, false );
[79] Fix | Delete
echo $content;
[80] Fix | Delete
?>
[81] Fix | Delete
</div>
[82] Fix | Delete
</div>
[83] Fix | Delete
<hr class="hr-separator">
[84] Fix | Delete
<h3 class="section-title"><?php _e( 'Policies' ); ?></h3>
[85] Fix | Delete
<div class="privacy-settings-accordion wp-privacy-policy-guide">
[86] Fix | Delete
<?php WP_Privacy_Policy_Content::privacy_policy_guide(); ?>
[87] Fix | Delete
</div>
[88] Fix | Delete
</div>
[89] Fix | Delete
<?php
[90] Fix | Delete
[91] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[92] Fix | Delete
[93] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function