Changeset 35901
- Timestamp:
- 12/13/2015 07:02:30 PM (10 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 3 edited
-
class-wp-media-list-table.php (modified) (4 diffs)
-
class-wp-posts-list-table.php (modified) (1 diff)
-
meta-boxes.php (modified) (1 diff)
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();'" : ''; -
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r35790 r35901 1180 1180 $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; 1181 1181 elseif ( EMPTY_TRASH_DAYS ) 1182 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . _ _( 'Trash' ) . "</a>";1182 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash' ) . "' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>"; 1183 1183 if ( 'trash' === $post->post_status || !EMPTY_TRASH_DAYS ) 1184 1184 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr__( 'Delete this item permanently' ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>"; -
trunk/src/wp-admin/includes/meta-boxes.php
r35790 r35901 335 335 if ( current_user_can( 'delete_post', $post->ID ) ) 336 336 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 337 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . _ _( 'Trash' ) . "</a>";337 echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . _x( 'Trash', 'verb' ) . "</a>"; 338 338 } else { 339 339 $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
Note: See TracChangeset
for help on using the changeset viewer.