Changeset 5579
- Timestamp:
- 05/28/07 20:39:24 (1 year ago)
- Files:
-
- trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
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 .= ')';
