Remove accidental code. See #10122

git-svn-id: https://develop.svn.wordpress.org/trunk@14431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-05-04 05:48:08 +00:00
parent 3d3322c1d6
commit a8feef50fc
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 ) {