Make WordPress Core

Changeset 53642


Ignore:
Timestamp:
07/04/2022 10:09:45 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r53455 r53642  
    522522            <?php
    523523            /* translators: %s: Home URL. */
    524             printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) );
     524            printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), esc_url( home_url( '/' ) ) );
    525525            ?>
    526526    </p>
Note: See TracChangeset for help on using the changeset viewer.