Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 12876)
+++ wp-includes/query.php	(working copy)
@@ -1592,7 +1592,7 @@
 			$q['suppress_filters'] = false;
 
 		if ( !isset($q['post_type']) ) {
-			if ( $this->is_search )
+			if ( $this->is_search || isset($q['p']))
 				$q['post_type'] = 'any';
 			else
 				$q['post_type'] = '';

