mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@17404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
57eeed9f3e
commit
80f47f270b
@ -81,6 +81,9 @@ foreach ( array( 'pre_term_slug' ) as $filter ) {
|
||||
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 ) {
|
||||
add_filter( $filter, 'sanitize_key' );
|
||||
}
|
||||
|
||||
// Places to balance tags on input
|
||||
foreach ( array( 'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content' ) as $filter ) {
|
||||
|
Loading…
Reference in New Issue
Block a user