From ea1663435c4a7fe6bbe340891245cd441f33afa1 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 12 Nov 2007 19:51:42 +0000 Subject: [PATCH] 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 --- wp-admin/import/wordpress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index d15f3a43be..1744639e4f 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -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); }