From 923fe535b4018a0b9a5708ccb9f7e27bb567e80f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Jul 2022 10:12:53 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@53643 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-custom-background.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-custom-background.php b/src/wp-admin/includes/class-custom-background.php index 3cb560237c..4914ebde39 100644 --- a/src/wp-admin/includes/class-custom-background.php +++ b/src/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( '/' ) ) ); ?>