Changeset 5707 for trunk/wp-includes/query.php
- Timestamp:
- 06/14/2007 04:24:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r5700 r5707 1007 1007 if ( in_array( 'draft' , $q_status ) ) 1008 1008 $r_status[] = "post_status = 'draft'"; 1009 if ( in_array( 'pending', $q_status ) ) 1010 $r_status[] = "post_status = 'pending'"; 1009 1011 if ( in_array( 'future' , $q_status ) ) 1010 1012 $r_status[] = "post_status = 'future'"; … … 1021 1023 1022 1024 if ( is_admin() ) 1023 $where .= " OR post_status = 'future' OR post_status = 'draft' ";1025 $where .= " OR post_status = 'future' OR post_status = 'draft' OR post_status = 'pending'"; 1024 1026 1025 1027 if ( is_user_logged_in() ) { … … 1129 1131 $this->posts = array(); 1130 1132 } else { 1131 if ('draft' == $status) {1133 if (in_array($status, array('draft', 'pending')) ) { 1132 1134 // User must have edit permissions on the draft to preview. 1133 1135 if (! current_user_can('edit_post', $this->posts[0]->ID)) {
Note: See TracChangeset
for help on using the changeset viewer.