From 401f5818798a0928722ac8f1638b9bc5fe7d4e8f Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 24 Jul 2007 22:29:41 +0000 Subject: [PATCH] Don't forget to filter post_category git-svn-id: http://svn.automattic.com/wordpress/trunk@5817 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 63bfd1959..61e4bfe11 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -418,7 +418,7 @@ function get_post_custom_values( $key = '', $post_id = 0 ) { function sanitize_post($post, $context = 'display') { // TODO: Use array keys instead of hard coded list - $fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_date', 'post_date_gmt', 'post_parent', 'menu_order', 'post_mime_type'); + $fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_date', 'post_date_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'post_category'); $do_object = false; if ( is_object($post) )