Make WordPress Core

Ticket #54238: 54238.1.diff

File 54238.1.diff, 2.1 KB (added by audrasjb, 3 years ago)

Revert the Trash - noun change from the patch

  • src/wp-admin/includes/class-wp-media-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
    index cc27e80324..d425bccfbf 100644
    a b class WP_Media_List_Table extends WP_List_Table { 
    151151                        );
    152152                }
    153153
    154                 $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . __( 'Unattached' ) . '</option>';
     154                $type_links['detached'] = '<option value="detached"' . ( $this->detached ? ' selected="selected"' : '' ) . '>' . _x( 'Unattached', 'media items' ) . '</option>';
    155155
    156156                $type_links['mine'] = sprintf(
    157157                        '<option value="mine"%s>%s</option>',
  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index 43795c9084..6e7f66760f 100644
    a b function wp_enqueue_media( $args = array() ) { 
    44564456                'allDates'                    => __( 'All dates' ),
    44574457                'noItemsFound'                => __( 'No items found.' ),
    44584458                'insertIntoPost'              => $post_type_object->labels->insert_into_item,
    4459                 'unattached'                  => __( 'Unattached' ),
     4459                'unattached'                  => _x( 'Unattached', 'media items' ),
    44604460                'mine'                        => _x( 'Mine', 'media items' ),
    44614461                'trash'                       => _x( 'Trash', 'noun' ),
    44624462                'uploadedToThisPost'          => $post_type_object->labels->uploaded_to_this_item,
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index 2bcd72c6d4..634f696b64 100644
    a b function get_post_mime_types() { 
    29392939                        ),
    29402940                ),
    29412941                'audio'       => array(
    2942                         __( 'Audio' ),
     2942                        _x( 'Audio', 'media items' ),
    29432943                        __( 'Manage Audio' ),
    29442944                        /* translators: %s: Number of audio files. */
    29452945                        _n_noop(
    function get_post_mime_types() { 
    29482948                        ),
    29492949                ),
    29502950                'video'       => array(
    2951                         __( 'Video' ),
     2951                        _x( 'Video', 'media items' ),
    29522952                        __( 'Manage Video' ),
    29532953                        /* translators: %s: Number of video files. */
    29542954                        _n_noop(