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:
parent
3d3322c1d6
commit
a8feef50fc
@ -2228,10 +2228,9 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
|
|||||||
|
|
||||||
wp_set_post_categories( $post_ID, $post_category );
|
wp_set_post_categories( $post_ID, $post_category );
|
||||||
// old-style tags_input
|
// old-style tags_input
|
||||||
if ( isset( $tags_input ) ) {
|
if ( isset( $tags_input ) )
|
||||||
$tags_input = array_filter($tags_input);
|
|
||||||
wp_set_post_tags( $post_ID, $tags_input );
|
wp_set_post_tags( $post_ID, $tags_input );
|
||||||
}
|
|
||||||
// new-style support for all custom taxonomies
|
// new-style support for all custom taxonomies
|
||||||
if ( !empty($tax_input) ) {
|
if ( !empty($tax_input) ) {
|
||||||
foreach ( $tax_input as $taxonomy => $tags ) {
|
foreach ( $tax_input as $taxonomy => $tags ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user