Privacy: Escape Privacy Policy guide URL in in Privacy Policy edit page notice.

Props itowhid06, garrett-eclipse.
Fixes #44761.

git-svn-id: https://develop.svn.wordpress.org/trunk@44779 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-02-28 12:07:20 +00:00
parent 4620357c99
commit 169a73aaed
2 changed files with 2 additions and 2 deletions

View File

@ -1644,7 +1644,7 @@ final class WP_Privacy_Policy_Content {
/* 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=1' ),
esc_url( admin_url( 'tools.php?wp-privacy-policy-guide=1' ) ),
'target="_blank"',
sprintf(
'<span class="screen-reader-text"> %s</span>',

View File

@ -182,7 +182,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.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.' ),
admin_url( 'tools.php?wp-privacy-policy-guide' ),
esc_url( admin_url( 'tools.php?wp-privacy-policy-guide' ) ),
'',
''
);