- Timestamp:
- 12/13/2015 07:02:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r35752 r35901 128 128 '<option value="trash"%s>%s</option>', 129 129 selected( 'trash' === $filter, true, false ), 130 _ _( 'Trash' )130 _x( 'Trash', 'attachment filter' ) 131 131 ); 132 132 } … … 145 145 $actions['delete'] = __( 'Delete Permanently' ); 146 146 } else { 147 $actions['trash'] = _ _( 'Trash' );147 $actions['trash'] = _x( 'Trash', 'verb' ); 148 148 } 149 149 } else { … … 637 637 if ( current_user_can( 'delete_post', $post->ID ) ) 638 638 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 639 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _ _( 'Trash' ) . "</a>";639 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>"; 640 640 } else { 641 641 $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; … … 653 653 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; 654 654 elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) 655 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _ _( 'Trash' ) . "</a>";655 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>"; 656 656 if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { 657 657 $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';
Note: See TracChangeset
for help on using the changeset viewer.