Changes between Initial Version and Version 1 of Ticket #31270, comment 2
- Timestamp:
- 02/09/2015 11:25:33 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31270, comment 2
initial v1 1 It appears that when determining the slug (when not specifically provided) in `wp_insert_term()`, if there is a term with the same name on any level, the slug of that term is used. This can be clearly seen at [https://core.trac.wordpress.org/changeset/28733 "[28733]"] - lines `2441:2442`. The issue can be resolved if a term with the same name is considered only when it is on the current term level. Attached a patch for that .1 It appears that when determining the slug (when not specifically provided) in `wp_insert_term()`, if there is a term with the same name on any level, the slug of that term is used. This can be clearly seen at [https://core.trac.wordpress.org/changeset/28733 "[28733]"] - lines `2441:2442`. The issue can be resolved if a term with the same name is considered only when it is on the current term level. Attached a patch for that - [https://core.trac.wordpress.org/attachment/ticket/31270/31270.patch 31270.patch].