[wp-trac] [WordPress Trac] #11354: WordPress Importer duplicates categories
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 7 22:24:50 UTC 2009
#11354: WordPress Importer duplicates categories
---------------------------+------------------------------------------------
Reporter: briancolinger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Import | Version:
Severity: normal | Keywords: duplicate categories, wordpress importer
---------------------------+------------------------------------------------
The WordPress importer duplicates categories.
This only seems to affect child categories.
To reproduce, get an export file that has parent and children categories.
Run the importer multiple times with the same file.
View the category screen under Posts->Categories, you should see
duplicated child categories.
I've included a patch for the process_categories() method that fixes this
by explicitly checking if each category_exists().
I've included the same patch for process_tags() method. Tags do not
duplicate, but wp_insert_term() is called without checking if the tag
exists.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11354>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list