Changeset 18053
- Timestamp:
- 05/26/2011 05:41:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r18025 r18053 998 998 $q['post_type'] = 'attachment'; 999 999 $post_type = get_post_type_object( 'attachment' ); 1000 $states = array( 'inherit' );1000 $states = 'inherit'; 1001 1001 if ( current_user_can( $post_type->cap->read_private_posts ) ) 1002 $states [] = 'private';1002 $states .= ',private'; 1003 1003 1004 1004 $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : $states;
Note: See TracChangeset
for help on using the changeset viewer.