From 964b620f7ba7187a6e106dda7f0cff683a007a0a Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 8 Nov 2011 17:53:52 +0000 Subject: [PATCH] Remove unused variable. props kawauso, see #18364. git-svn-id: http://svn.automattic.com/wordpress/trunk@19216 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index f5f8e83f3..56da235ab 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 ) . "')");