Coding Standards: Escape the home URL in the "Header updated. Visit your site" message.
This affects `Custom_Image_Header::step_1()`. Follow-up to [12890], [45654]. Props jakariaistauk, rudlinkon, hztyfoon, costdev. Fixes #56132. Built from https://develop.svn.wordpress.org/trunk@53642 git-svn-id: http://core.svn.wordpress.org/trunk@53201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c94f45bb0
commit
eb08ad9160
|
@ -521,7 +521,7 @@ class Custom_Image_Header {
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Home URL. */
|
/* translators: %s: Home URL. */
|
||||||
printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) );
|
printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), esc_url( home_url( '/' ) ) );
|
||||||
?>
|
?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53641';
|
$wp_version = '6.1-alpha-53642';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue