Changeset 5700 for trunk/wp-includes/query.php
- Timestamp:
- 06/14/2007 02:25:30 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r5660 r5700 462 462 463 463 $qv['attachment_id'] = (int) $qv['attachment_id']; 464 464 465 465 if ( ('' != $qv['attachment']) || !empty($qv['attachment_id']) ) { 466 466 $this->is_single = true; … … 1022 1022 if ( is_admin() ) 1023 1023 $where .= " OR post_status = 'future' OR post_status = 'draft'"; 1024 1024 1025 1025 if ( is_user_logged_in() ) { 1026 1026 $where .= current_user_can( "read_private_{$post_type}s" ) ? " OR post_status = 'private'" : " OR post_author = $user_ID AND post_status = 'private'";
Note: See TracChangeset
for help on using the changeset viewer.