From ecad0a90168228df417396c58f4be740959c6238 Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 15 Nov 2010 15:23:04 +0000 Subject: [PATCH] Revert [16384]. See #15433 git-svn-id: https://develop.svn.wordpress.org/trunk@16385 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 9a3ad3c691..81601aac98 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1822,7 +1822,7 @@ class WP_Query { unset($ptype_obj); } - if ( '' != $q['name'] && !$q['p'] ) { + if ( '' != $q['name'] ) { $q['name'] = sanitize_title_for_query( $q['name'] ); $where .= " AND $wpdb->posts.post_name = '" . $q['name'] . "'"; } elseif ( '' != $q['pagename'] ) {