mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-25 07:44:34 +00:00
Don't allow private query vars in url_to_postid
git-svn-id: https://develop.svn.wordpress.org/trunk@5925 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -657,6 +657,12 @@ class WP_Query {
|
||||
}
|
||||
}
|
||||
|
||||
if ( !empty($qv['post_type']) )
|
||||
$qv['post_type'] = sanitize_user($qv['post_type'], true);
|
||||
|
||||
if ( !empty($qv['post_status']) )
|
||||
$qv['post_status'] = sanitize_user($qv['post_status'], true);
|
||||
|
||||
if ( $this->is_posts_page && !$qv['withcomments'] )
|
||||
$this->is_comment_feed = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user