Changeset 5579
- Timestamp:
- 05/28/2007 08:39:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r5575 r5579 1025 1025 if ( is_admin() ) 1026 1026 $where .= " OR post_status = 'future' OR post_status = 'draft'"; 1027 1028 $where .= current_user_can( "read_private_{$post_type}s" ) ? " OR post_status = 'private'" : " OR post_author = $user_ID AND post_status = 'private'"; 1027 1028 if ( is_user_logged_in() ) { 1029 $where .= current_user_can( "read_private_{$post_type}s" ) ? " OR post_status = 'private'" : " OR post_author = $user_ID AND post_status = 'private'"; 1030 } 1029 1031 1030 1032 $where .= ')';
Note: See TracChangeset
for help on using the changeset viewer.