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:
ryan
2010-09-20 15:28:58 +00:00
parent c2100074d3
commit 6b351163ef
3 changed files with 4 additions and 8 deletions

View File

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