Index: htdocs/wp-admin/includes/nav-menu.php
===================================================================
--- htdocs/wp-admin/includes/nav-menu.php	(revision 26809)
+++ htdocs/wp-admin/includes/nav-menu.php	(working copy)
@@ -387,18 +387,23 @@
 			}
 
 		}
-
-	} elseif ( preg_match('/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*\b)/', $type, $matches) ) {
+	} elseif ( preg_match('/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*\b)/', $type, $matches ) ) {
 		if ( 'posttype' == $matches[1] && get_post_type_object( $matches[2] ) ) {
-			query_posts(array(
+			query_posts( array(
 				'posts_per_page' => 10,
 				'post_type' => $matches[2],
 				's' => $query,
-			));
-			if ( ! have_posts() )
+			) );
+			if ( ! have_posts() ) {
 				return;
+			}
+			
 			while ( have_posts() ) {
-				the_post();
+				global $post;
+				global $wp_query;
+				$post = $wp_query->next_post();
+				setup_postdata( $post );
+				
 				if ( 'markup' == $response_format ) {
 					$var_by_ref = get_the_ID();
 					echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args );
@@ -422,7 +427,7 @@
 				return;
 			foreach( (array) $terms as $term ) {
 				if ( 'markup' == $response_format ) {
-					echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args );
+					echo walk_nav_menu_tree( array_map( 'wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args );
 				} elseif ( 'json' == $response_format ) {
 					echo json_encode(
 						array(
