WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2021 06:09:27 PM (7 months 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/customize.php

    r48420 r50931  
    243243
    244244        <div id="customize-footer-actions" class="wp-full-overlay-footer">
    245             <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr( _x( 'Hide Controls', 'label for hide controls button without length constraints' ) ); ?>">
     245            <button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php echo esc_attr_x( 'Hide Controls', 'label for hide controls button without length constraints' ); ?>">
    246246                <span class="collapse-sidebar-arrow"></span>
    247247                <span class="collapse-sidebar-label"><?php _ex( 'Hide Controls', 'short (~12 characters) label for hide controls button' ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.