Support » Fixing WordPress » bug in ./wp-admin/import/dotclear.php WP2.5.1

  • Hello,

    When you use the dotclear import script.
    Category’s post are not right set.
    It’s because in the script, the new id (wp id) of the category is write in the second cell of a tab, so the first cell is empty.
    And in wp_set_post_categories function, if the first cell is empty we do nothing (don’t set the category of the post)

    So to resolve it :

    For WordPress 2.5.1 (may be older also)

    In ./wp-admin/import/dotclear.php ligne 397 :
    if($cat1 = $category1) { $cats[1] = $cat1; }

    replace by
    if($cat1 = $category1) { $cats[0] = $cat1; }


  • The topic ‘bug in ./wp-admin/import/dotclear.php WP2.5.1’ is closed to new replies.