Make WordPress Core

Changeset 53643


Ignore:
Timestamp:
07/04/2022 10:12:53 AM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r53455 r53643  
    251251            <?php
    252252            /* translators: %s: Home URL. */
    253             printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) );
     253            printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), esc_url( home_url( '/' ) ) );
    254254            ?>
    255255    </p>
Note: See TracChangeset for help on using the changeset viewer.