From 233089c1385b2d08920619fff9f0a089cec86ce7 Mon Sep 17 00:00:00 2001
From: audrasjb
Date: Fri, 5 Aug 2022 06:12:10 +0000
Subject: [PATCH] Coding standards: Properly escape URLs returned by
`self_admin_url()` calls.
This address some other echoed instances missed by [53839].
Fixes #56329.
Built from https://develop.svn.wordpress.org/trunk@53840
git-svn-id: http://core.svn.wordpress.org/trunk@53399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/includes/plugin-install.php | 2 +-
wp-admin/update-core.php | 6 +++---
wp-includes/version.php | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php
index cc2294ee5a..61bc77fb7e 100644
--- a/wp-admin/includes/plugin-install.php
+++ b/wp-admin/includes/plugin-install.php
@@ -827,7 +827,7 @@ function install_plugin_information() {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( 'Click here to update WordPress.' ),
- self_admin_url( 'update-core.php' )
+ esc_url( self_admin_url( 'update-core.php' ) )
);
}
echo '
';
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index d4509763b3..087d314fc6 100644
--- a/wp-admin/update-core.php
+++ b/wp-admin/update-core.php
@@ -686,7 +686,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
__( 'Please update WordPress, and then learn more about updating PHP.' ),
- self_admin_url( 'update-core.php' ),
+ esc_url( self_admin_url( 'update-core.php' ) ),
esc_url( wp_get_update_php_url() )
);
@@ -699,7 +699,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__( 'Please update WordPress.' ),
- self_admin_url( 'update-core.php' )
+ esc_url( self_admin_url( 'update-core.php' ) )
);
} elseif ( current_user_can( 'update_php' ) ) {
$compat .= sprintf(
@@ -720,7 +720,7 @@ function list_theme_updates() {
$compat .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__( 'Please update WordPress.' ),
- self_admin_url( 'update-core.php' )
+ esc_url( self_admin_url( 'update-core.php' ) )
);
}
} elseif ( ! $compatible_php ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 022e2fc348..8f4c148627 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.1-alpha-53839';
+$wp_version = '6.1-alpha-53840';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.