From de1fbae529b2d7aad9cfa6a7e28a96a945620cea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 9 May 2018 23:11:29 +0000 Subject: [PATCH] Privacy: Make the help hint for Privacy Policy page more translatable and accessible. Props tobifjellner. See #43980. git-svn-id: https://develop.svn.wordpress.org/trunk@43206 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/misc.php | 12 ++++++++++-- src/wp-admin/privacy.php | 7 +++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php index f68067dc09..ff8e78a98e 100644 --- a/src/wp-admin/includes/misc.php +++ b/src/wp-admin/includes/misc.php @@ -1555,9 +1555,17 @@ final class WP_Privacy_Policy_Content {

' . __( 'Check out our guide' ) . '' ); + __( 'Need help putting together your new Privacy Policy page? Check out our guide%3$s 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' ), + 'target="_blank"', + sprintf( + ' %s', + /* translators: accessibility text */ + __( '(opens in a new tab)' ) + ) + ); ?>

diff --git a/src/wp-admin/privacy.php b/src/wp-admin/privacy.php index d846030224..41d2d4c1d1 100644 --- a/src/wp-admin/privacy.php +++ b/src/wp-admin/privacy.php @@ -141,9 +141,12 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );

' . __( 'Check out our guide' ) . '' + __( 'Need help putting together your new Privacy Policy page? Check out our guide%3$s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ), + admin_url( 'tools.php?wp-privacy-policy-guide' ), + '', + '' ); ?>