WordPress.org

Ready to get started?Download WordPress

Forums

bug in ./wp-admin/import/dotclear.php WP2.5.1 (1 post)

  1. rgesnot
    Member
    Posted 6 years ago #

    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; }

    Bye
    RĂ©gis

Topic Closed

This topic has been closed to new replies.

About this Topic