Revert [16384]. See #15433

git-svn-id: http://svn.automattic.com/wordpress/trunk@16385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-11-15 15:23:04 +00:00
parent b20d93c69c
commit e55bee786e
1 changed files with 1 additions and 1 deletions

View File

@ -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'] ) {