From 6348d2a8d626498865b01bb24860188de39d0967 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 6 Feb 2011 18:38:41 +0000 Subject: [PATCH] Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For 3.0 git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@17406 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 293da2fa51..3fb31bcfae 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -73,6 +73,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 ) {