From e57fcaeeeea636ae8b70473de06d628b1fbd93cb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Feb 2019 12:08:49 +0000 Subject: [PATCH] Privacy: Escape Privacy Policy guide URL in in Privacy Policy edit page notice. Props itowhid06, garrett-eclipse. Fixes #44761. Built from https://develop.svn.wordpress.org/trunk@44779 git-svn-id: http://core.svn.wordpress.org/trunk@44611 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/misc.php | 2 +- wp-admin/privacy.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index c3c2ae5f10..8a3be1093d 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -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? 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' ), + esc_url( admin_url( 'tools.php?wp-privacy-policy-guide=1' ) ), 'target="_blank"', sprintf( ' %s', diff --git a/wp-admin/privacy.php b/wp-admin/privacy.php index 3b6933df33..557e4a4187 100644 --- a/wp-admin/privacy.php +++ b/wp-admin/privacy.php @@ -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? 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' ), + esc_url( admin_url( 'tools.php?wp-privacy-policy-guide' ) ), '', '' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7457fcd430..fe7909f5fd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-44778'; +$wp_version = '5.2-alpha-44779'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.