--- a/wp/wp-admin/privacy.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-admin/privacy.php Mon Oct 14 18:28:13 2019 +0200
@@ -39,7 +39,7 @@
) {
$privacy_page_updated_message = sprintf(
/* translators: %s: URL to Customizer -> Menus */
- __( 'Privacy Policy page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
+ __( 'Privacy Policy page setting updated successfully. Remember to <a href="%s">update your menus</a>!' ),
esc_url( add_query_arg( 'autofocus[panel]', 'nav_menus', admin_url( 'customize.php' ) ) )
);
}
@@ -58,7 +58,7 @@
}
$privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content();
- $privacy_policy_page_id = wp_insert_post(
+ $privacy_policy_page_id = wp_insert_post(
array(
'post_title' => __( 'Privacy Policy' ),
'post_status' => 'draft',
@@ -156,35 +156,44 @@
<?php
if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) {
- /* translators: 1: URL to edit page, 2: URL to view page */
- printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ), $edit_href, $view_href );
+ printf(
+ /* translators: 1: URL to edit Privacy Policy page, 2: URL to view Privacy Policy page */
+ __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ),
+ esc_url( $edit_href ),
+ esc_url( $view_href )
+ );
} else {
- /* translators: 1: URL to edit page, 2: URL to preview page */
- printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ), $edit_href, $view_href );
+ printf(
+ /* translators: 1: URL to edit Privacy Policy page, 2: URL to preview Privacy Policy page */
+ __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ),
+ esc_url( $edit_href ),
+ esc_url( $view_href )
+ );
}
?>
</strong></p>
- <p>
- <?php
-
- /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
- printf(
- __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
- admin_url( 'tools.php?wp-privacy-policy-guide' ),
- '',
- ''
- );
-
- ?>
- </p>
<?php
}
?>
+ <p>
+ <?php
+
+ printf(
+ /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
+ __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
+ esc_url( admin_url( 'tools.php?wp-privacy-policy-guide=1' ) ),
+ '',
+ ''
+ );
+
+ ?>
+ </p>
+
<hr>
- <table class="form-table tools-privacy-policy-page">
+ <table class="form-table tools-privacy-policy-page" role="presentation">
<tr>
- <th scope="row">
+ <th scope="row"><label for="page_for_privacy_policy">
<?php
if ( $privacy_policy_page_exists ) {
_e( 'Change your Privacy Policy page' );
@@ -192,23 +201,23 @@
_e( 'Select a Privacy Policy page' );
}
?>
- </th>
+ </label></th>
<td>
<?php
- $has_pages = (bool) get_posts( array(
- 'post_type' => 'page',
- 'posts_per_page' => 1,
- 'post_status' => array(
- 'publish',
- 'draft',
- ),
- ) );
+ $has_pages = (bool) get_posts(
+ array(
+ 'post_type' => 'page',
+ 'posts_per_page' => 1,
+ 'post_status' => array(
+ 'publish',
+ 'draft',
+ ),
+ )
+ );
- if ( $has_pages ) : ?>
+ if ( $has_pages ) :
+ ?>
<form method="post" action="">
- <label for="page_for_privacy_policy">
- <?php _e( 'Select an existing page:' ); ?>
- </label>
<input type="hidden" name="action" value="set-privacy-page" />
<?php
wp_dropdown_pages(