From c843c7edf31da5d461cacc5d8586a51ea2003c61 Mon Sep 17 00:00:00 2001 From: dd32 Date: Tue, 4 May 2010 05:48:08 +0000 Subject: [PATCH] Remove accidental code. See #10122 git-svn-id: http://svn.automattic.com/wordpress/trunk@14431 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index deeb6e29da..bcc868e6a9 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2228,10 +2228,9 @@ function wp_insert_post($postarr = array(), $wp_error = false) { wp_set_post_categories( $post_ID, $post_category ); // old-style tags_input - if ( isset( $tags_input ) ) { - $tags_input = array_filter($tags_input); + if ( isset( $tags_input ) ) wp_set_post_tags( $post_ID, $tags_input ); - } + // new-style support for all custom taxonomies if ( !empty($tax_input) ) { foreach ( $tax_input as $taxonomy => $tags ) {