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

git-svn-id: https://develop.svn.wordpress.org/trunk@6332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-11-12 19:51:42 +00:00
parent 5697266149
commit a24adbd80b
1 changed files with 1 additions and 1 deletions

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);
}