mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
5edbc3d3c7
commit
c843c7edf3
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user