From e6b01542a56c824adacef9c8a8cb02511d3e9620 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 5 Mar 2008 18:49:56 +0000 Subject: [PATCH] Don't return early before filtering. git-svn-id: http://svn.automattic.com/wordpress/trunk@7161 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 5b556620a9..a14c1e56fd 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -725,13 +725,9 @@ function sanitize_post($post, $context = 'display') { if ( 'raw' == $context ) return $post; if ( is_object($post) ) { - if ( !isset($post->ID) ) - return $post; foreach ( array_keys(get_object_vars($post)) as $field ) $post->$field = sanitize_post_field($field, $post->$field, $post->ID, $context); } else { - if ( !isset($post['ID']) ) - return $post; foreach ( array_keys($post) as $field ) $post[$field] = sanitize_post_field($field, $post[$field], $post['ID'], $context); }