[wp-trac] [WordPress Trac] #5034: Impossible to have duplicate category slugs with different parents

WordPress Trac noreply at wordpress.org
Wed Mar 25 23:18:10 UTC 2015


#5034: Impossible to have duplicate category slugs with different parents
-----------------------------+-----------------------------
 Reporter:  snakefoot        |       Owner:
     Type:  feature request  |      Status:  assigned
 Priority:  high             |   Milestone:  Future Release
Component:  Taxonomy         |     Version:  2.3
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by snakefoot):

 After the unique index has been removed with 4.1.1, then I can correct the
 slugs directly using the php-dbadmin.

 But the query-lookup only looks at the last slug, and gets confused by
 similar slugs with different parents. The original version checked the
 hierarchy if pretty permalinks was activated.

 I have attached a simple plugin, that performs this parent lookup and
 fixes the category term_id (category-slug-hierarchy.php)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/5034#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list