From cfc9a60243ff791e35c5e67cb097edcfd15f07f3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Feb 2019 12:01:50 +0000 Subject: [PATCH] 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 --- wp-admin/privacy.php | 16 ++++++++++++---- wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/wp-admin/privacy.php b/wp-admin/privacy.php index 0747984efb..3b6933df33 100644 --- a/wp-admin/privacy.php +++ b/wp-admin/privacy.php @@ -156,11 +156,19 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); Edit or view 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 */ + __( 'Edit or view 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( __( 'Edit or preview 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 */ + __( 'Edit or preview your Privacy Policy page content.' ), + esc_url( $edit_href ), + esc_url( $view_href ) + ); } ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index f84889a476..7457fcd430 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.