Changeset 11749 for trunk/wp-admin/includes/post.php
- Timestamp:
- 07/30/2009 01:39:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r11534 r11749 796 796 'draft' => array(_x('Draft', 'post'), _x('Drafts', 'manage posts header'), _n_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')), 797 797 'private' => array(_x('Private', 'post'), __('Private posts'), _n_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')), 798 'trash' => array(_x('Trash', 'post'), __('Trash posts'), _n_noop('Trash <span class="count">(%s)</span>', 'Trash <span class="count">(%s)</span>')), 798 799 ); 799 800 … … 859 860 $q['cat'] = isset( $q['cat'] ) ? (int) $q['cat'] : 0; 860 861 $q['post_type'] = 'attachment'; 861 $q['post_status'] = 'any';862 $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : 'any'; 862 863 $media_per_page = get_user_option('upload_per_page'); 863 864 if ( empty($media_per_page) )
Note: See TracChangeset
for help on using the changeset viewer.