Ticket #12287: query.diff
File query.diff, 591 bytes (added by , 15 years ago) |
---|
-
wp-includes/query.php
1949 1949 if ( !is_wp_error($post_ids) && count($post_ids) ) { 1950 1950 $whichcat .= " AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ") "; 1951 1951 $post_type = 'any'; 1952 $q['post_status'] = 'publish'; 1952 if ( !isset($q['post_status']) || empty($q['post_status']) ) 1953 $q['post_status'] = 'publish'; 1953 1954 $post_status_join = true; 1954 1955 } else { 1955 1956 $whichcat = " AND 0 ";