From e70ac7004c8773249ec47fc56a73953043a6a877 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Jul 2022 10:14:14 +0000 Subject: [PATCH] Coding Standards: Escape the home URL in the "Background updated. Visit your site" message. This affects `Custom_Background::admin_page()`. Follow-up to [13041], [45662], [53642]. Props robinwpdeveloper, sajjad67, rudlinkon, hztyfoon, costdev. Fixes #56133. Built from https://develop.svn.wordpress.org/trunk@53643 git-svn-id: http://core.svn.wordpress.org/trunk@53202 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-custom-background.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-custom-background.php b/wp-admin/includes/class-custom-background.php index 3cb560237c..4914ebde39 100644 --- a/wp-admin/includes/class-custom-background.php +++ b/wp-admin/includes/class-custom-background.php @@ -250,7 +250,7 @@ class Custom_Background {

Visit your site to see how it looks.' ), home_url( '/' ) ); + printf( __( 'Background updated. Visit your site to see how it looks.' ), esc_url( home_url( '/' ) ) ); ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index 0115528c3b..7c9e4d0708 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53642'; +$wp_version = '6.1-alpha-53643'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.