WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2010 03:28:58 PM (9 years ago)
Author:
ryan
Message:

Simplify sanitize_key() and use it in more places. see #14910

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15627 r15635  
    14571457        if ( !empty($qv['post_type']) ) {
    14581458            if ( is_array($qv['post_type']) )
    1459                 $qv['post_type'] = array_map('sanitize_user', $qv['post_type'], array(true));
     1459                $qv['post_type'] = array_map('sanitize_key', $qv['post_type']);
    14601460            else
    1461                 $qv['post_type'] = sanitize_user($qv['post_type'], true);
     1461                $qv['post_type'] = sanitize_key($qv['post_type']);
    14621462        }
    14631463
Note: See TracChangeset for help on using the changeset viewer.