Changeset 14121
- Timestamp:
- 04/17/2010 09:03:33 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r14108 r14121 2032 2032 if ( !is_wp_error($post_ids) && !empty($post_ids) ) { 2033 2033 $whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") "; 2034 $post_type = 'any'; 2034 if ( '' === $post_type ) { 2035 $post_type = 'any'; 2036 $post_status_join = true; 2037 } elseif ( in_array('attachment', (array)$post_type) ) { 2038 $post_status_join = true; 2039 } 2035 2040 $q['post_status'] = 'publish'; 2036 $post_status_join = true;2037 2041 } else { 2038 2042 $whichcat = " AND 0 "; … … 2293 2297 if ( empty($q['nopaging']) && !$this->is_singular ) { 2294 2298 $page = absint($q['paged']); 2295 if ( empty($page)) {2299 if ( empty($page) ) 2296 2300 $page = 1; 2297 }2298 2301 2299 2302 if ( empty($q['offset']) ) {
Note: See TracChangeset
for help on using the changeset viewer.