Ticket #13020: 13020.diff
File 13020.diff, 586 bytes (added by , 15 years ago) |
---|
-
wp-includes/query.php
2031 2031 $post_ids = get_objects_in_term($term_ids, $taxonomy); 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 } 2035 2037 $q['post_status'] = 'publish'; 2036 2038 $post_status_join = true; 2037 2039 } else {