From 51b92606a3174e1aa60da2df322026ea2c329342 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 20 Feb 2008 22:30:44 +0000 Subject: Cast term id to int. fixes #562 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1200 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/import/wordpress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-admin/import/wordpress.php') diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index cdfd78c..dca1c73 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -377,9 +377,9 @@ class WP_Import { if ( $tag_id == 0 ) { $tag = $wpdb->escape($tag); $tag_id = wp_insert_term($tag, 'post_tag'); - $tag_id = intval( $tag_id['term_id'] ); + $tag_id = $tag_id['term_id']; } - $post_tags[] = $tag_id; + $post_tags[] = intval( $tag_id ); } wp_set_post_tags($post_id, $post_tags); } -- cgit