[wp-trac] [WordPress Trac] #31270: Unexpected slugs for same-title different-parents term creation

WordPress Trac noreply at wordpress.org
Wed Feb 25 22:47:07 UTC 2015


#31270: Unexpected slugs for same-title different-parents term creation
----------------------------------------+-----------------------------
 Reporter:  dd32                        |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Taxonomy                    |     Version:  4.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by snakefoot):

 When looking at the trunk code for wp_insert_term(), then it already has a
 check with is_taxonomy_hierarchical() that verify combinations of
 slug+term within the same parent. Together with the protection of
 wp_unique_term_slug() (concat of parent-term with child-slug).

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


More information about the wp-trac mailing list