Privacy: Improve translator comments for Privacy Policy page links in Privacy Settings; escape URLs.
Props birgire, garrett-eclipse. Fixes #46369. Built from https://develop.svn.wordpress.org/trunk@44778 git-svn-id: http://core.svn.wordpress.org/trunk@44610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
abf27c3b62
commit
cfc9a60243
|
@ -156,11 +156,19 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
<?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 )
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-44777';
|
||||
$wp_version = '5.2-alpha-44778';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue