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:
parent
5697266149
commit
a24adbd80b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user