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
This commit is contained in:
Sergey Biryukov 2022-07-04 10:12:53 +00:00
parent 8280a7ac9a
commit 923fe535b4

View File

@ -250,7 +250,7 @@ class Custom_Background {
<p>
<?php
/* translators: %s: Home URL. */
printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) );
printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), esc_url( home_url( '/' ) ) );
?>
</p>
</div>