Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202.

For consistency with the registration API and because it does less work.


git-svn-id: http://svn.automattic.com/wordpress/trunk@20234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-03-21 15:04:00 +00:00
parent dc0d6805be
commit cc0115ad8a

View File

@ -79,10 +79,7 @@ foreach ( array( 'pre_term_slug' ) as $filter ) {
}
// Keys
foreach ( array( 'pre_post_type' ) as $filter ) {
add_filter( $filter, 'sanitize_user' );
}
foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
add_filter( $filter, 'sanitize_key' );
}