Permalink
Browse files

cat id should be an integer, typo in role assignment

  • Loading branch information...
1 parent 41a1c0a commit c27cfd6b0f0f8821aaa0cc4f56655a073f33d92a @kidfiction kidfiction committed May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mt-backup-importer-cli.php
@@ -173,7 +173,7 @@ function _import_mt_user($path, $user, &$mappings) {
$password = (string) $user->attributes()->password;
$password = strlen($password) > 0 ? $password : wp_generate_password();
$created = (string) $user->attributes()->created_on;
- $role = $status == 'subscriber'; //1 ? 'editor' : 'subscriber';
+ $role = $status = 'subscriber'; //1 ? 'editor' : 'subscriber';
$data = array(
'user_pass' => $password,
@@ -404,7 +404,7 @@ function _import_mt_category($path, $category, &$mappings) {
} else {
$cat_id = $category->cat_ID;
}
- $mappings['categories'][(string)$id] = $cat_id;
+ $mappings['categories'][(string)$id] = (int) $cat_id;
}

0 comments on commit c27cfd6

Please sign in to comment.