summaryrefslogtreecommitdiffstats
path: root/wp-admin/import/wordpress.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/import/wordpress.php')
-rw-r--r--wp-admin/import/wordpress.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php
index 78d972f..90b616b 100644
--- a/wp-admin/import/wordpress.php
+++ b/wp-admin/import/wordpress.php
@@ -157,7 +157,7 @@ class WP_Import {
return;
}
$this->file = $file['file'];
- $this->id = $file['id'];
+ $this->id = (int) $file['id'];
$this->get_entries();
$this->wp_authors_form();
@@ -184,7 +184,7 @@ class WP_Import {
if ( empty($parent) )
$category_parent = '0';
else
- $category_parent = (int) category_exists($parent);
+ $category_parent = category_exists($parent);
$catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name');