[wp-trac] [WordPress Trac] #31270: Unexpected slugs for same-title different-parents term creation
WordPress Trac
noreply at wordpress.org
Mon Feb 9 03:35:54 UTC 2015
#31270: Unexpected slugs for same-title different-parents term creation
--------------------------+-----------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When creating a new term which matches an existing terms name, it uses
that slugs slug as the slug prefix, which can result in an unexpected term
slug.
For example, take this:
{{{
Foo (slug: foo)
- Bar (slug: foo-bar)
}}}
If we now create a root level "Bar" term, it'll get a slug of {{{foo-
bar-2}}}, when one would expect it to receive {{{bar}}} since no
conflicting slug exists.
This is related directly to [28733] / #17689.
Unit test attached showing behaviour.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31270>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list