[wp-trac] [WordPress Trac] #20850: Duplicate term insertion allowed after insertion with case differences
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 8 18:37:32 UTC 2012
#20850: Duplicate term insertion allowed after insertion with case differences
------------------------------------+------------------------------
Reporter: jazbek | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.3.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by DrewAPicture):
Replying to [comment:3 kurtpayne]:
> Is there a reason duplicate term checking in `wp_insert_term()` uses the
slug instead of the name?
Probably because you can't have duplicate slugs, but I'd expect there to
also be a check for the name. I'm guessing there are probably back-compat
concerns for people who have existing terms of both cases and that's why
it's still allowed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20850#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list