mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Ignore 'name' qv if 'p' qv is set. Fixes #15433
git-svn-id: http://svn.automattic.com/wordpress/trunk@16384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2dcfb8a55f
commit
b20d93c69c
@ -1822,7 +1822,7 @@ class WP_Query {
|
||||
unset($ptype_obj);
|
||||
}
|
||||
|
||||
if ( '' != $q['name'] ) {
|
||||
if ( '' != $q['name'] && !$q['p'] ) {
|
||||
$q['name'] = sanitize_title_for_query( $q['name'] );
|
||||
$where .= " AND $wpdb->posts.post_name = '" . $q['name'] . "'";
|
||||
} elseif ( '' != $q['pagename'] ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user