diff --git a/wp-includes/query.php b/wp-includes/query.php index f5f8e83f3b..56da235aba 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2386,7 +2386,6 @@ class WP_Query { } if ( 'any' == $post_type ) { - $exclude_post_types = ''; $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); if ( ! empty( $in_search_post_types ) ) $where .= $wpdb->prepare(" AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')");