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: https://develop.svn.wordpress.org/trunk@20234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cfb4179f87
commit
8d9d86352a
@ -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' );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user