Make sure term id is an int. Props tellyworth. fixes #5330

git-svn-id: http://svn.automattic.com/wordpress/trunk@6332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-11-12 19:51:42 +00:00
parent 3ca284f9e3
commit ea1663435c

View File

@ -396,7 +396,7 @@ class WP_Import {
$tag_id = wp_insert_term($tag, 'post_tag');
$tag_id = $tag_id['term_id'];
}
$post_tags[] = $tag_id;
$post_tags[] = intval($tag_id);
}
wp_set_post_tags($post_id, $post_tags);
}