diff --git a/wp-includes/query.php b/wp-includes/query.php
index 04286aa..8e69fe2 100644
a
|
b
|
class WP_Query { |
2422 | 2422 | |
2423 | 2423 | if ( 'any' == $post_type ) { |
2424 | 2424 | $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); |
2425 | | if ( ! empty( $in_search_post_types ) ) |
| 2425 | if ( empty( $in_search_post_types ) ) |
| 2426 | $where .= ' AND 1=0 '; |
| 2427 | else |
2426 | 2428 | $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"; |
2427 | 2429 | } elseif ( !empty( $post_type ) && is_array( $post_type ) ) { |
2428 | 2430 | $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')"; |