Remove accidental code. See #10122

git-svn-id: http://svn.automattic.com/wordpress/trunk@14431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-05-04 05:48:08 +00:00
parent 5edbc3d3c7
commit c843c7edf3
1 changed files with 2 additions and 3 deletions

View File

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