Make WordPress Core


Ignore:
Timestamp:
05/19/2021 06:09:27 PM (4 years ago)
Author:
davidbaumwald
Message:

I18N: Combine escaping and translation functions.

There are a few instances where two separate functions are used for both escaping and translating output. This change combines the two functions into the appropriate Core helper function.

Props dimadin, SergeyBiryukov.
Fixes #53153.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/nav-menus.php

    r49283 r50931  
    664664?>
    665665<div class="wrap">
    666     <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1>
     666    <h1 class="wp-heading-inline"><?php esc_html_e( 'Menus' ); ?></h1>
    667667    <?php
    668668    if ( current_user_can( 'customize' ) ) :
Note: See TracChangeset for help on using the changeset viewer.