mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
dc0d6805be
commit
cc0115ad8a
@ -79,10 +79,7 @@ foreach ( array( 'pre_term_slug' ) as $filter ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Keys
|
// Keys
|
||||||
foreach ( array( 'pre_post_type' ) as $filter ) {
|
foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
|
||||||
add_filter( $filter, 'sanitize_user' );
|
|
||||||
}
|
|
||||||
foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
|
|
||||||
add_filter( $filter, 'sanitize_key' );
|
add_filter( $filter, 'sanitize_key' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user