Make WordPress Core


Ignore:
Timestamp:
07/24/2020 12:19:37 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Administration: Capitalize Trash consistently in various messages.

When used as a noun referring to the "virtual" place, Trash should be capitalized.

Follow-up to [47233], [48352].

See #45317, #40244.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r48352 r48594  
    519519                    <?php if ( MEDIA_TRASH ) : ?>
    520520                        <# if ( 'trash' === data.status ) { #>
    521                             <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from trash' ); ?></button>
     521                            <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button>
    522522                        <# } else { #>
    523                             <button type="button" class="button-link trash-attachment"><?php _e( 'Move to trash' ); ?></button>
     523                            <button type="button" class="button-link trash-attachment"><?php _e( 'Move to Trash' ); ?></button>
    524524                        <# } #>
    525525                    <?php else : ?>
     
    640640                    <?php if ( MEDIA_TRASH ) : ?>
    641641                    <# if ( 'trash' === data.status ) { #>
    642                         <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from trash' ); ?></button>
     642                        <button type="button" class="button-link untrash-attachment"><?php _e( 'Restore from Trash' ); ?></button>
    643643                    <# } else { #>
    644                         <button type="button" class="button-link trash-attachment"><?php _e( 'Move to trash' ); ?></button>
     644                        <button type="button" class="button-link trash-attachment"><?php _e( 'Move to Trash' ); ?></button>
    645645                    <# } #>
    646646                    <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.