Simplify sanitize_key() and use it in more places. see #14910
git-svn-id: http://svn.automattic.com/wordpress/trunk@15635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1456,9 +1456,9 @@ class WP_Query {
|
||||
|
||||
if ( !empty($qv['post_type']) ) {
|
||||
if ( is_array($qv['post_type']) )
|
||||
$qv['post_type'] = array_map('sanitize_user', $qv['post_type'], array(true));
|
||||
$qv['post_type'] = array_map('sanitize_key', $qv['post_type']);
|
||||
else
|
||||
$qv['post_type'] = sanitize_user($qv['post_type'], true);
|
||||
$qv['post_type'] = sanitize_key($qv['post_type']);
|
||||
}
|
||||
|
||||
if ( !empty($qv['post_status']) )
|
||||
|
||||
Reference in New Issue
Block a user