Ticket #5330: wp-import-numeric-tag-fix-r6324.patch
File wp-import-numeric-tag-fix-r6324.patch, 476 bytes (added by , 17 years ago) |
---|
-
wordpress/wp-admin/import/wordpress.php
396 396 $tag_id = wp_insert_term($tag, 'post_tag'); 397 397 $tag_id = $tag_id['term_id']; 398 398 } 399 $post_tags[] = $tag_id;399 $post_tags[] = intval($tag_id); 400 400 } 401 401 wp_set_post_tags($post_id, $post_tags); 402 402 }