Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@17404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-02-06 18:37:20 +00:00
parent 118fb7f8ed
commit 579eb2ab28
1 changed files with 3 additions and 0 deletions

View File

@ -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 ) {