[wp-trac] [WordPress Trac] #16567: Can't create categories with different names but similar slugs on Edit Post screen
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 25 21:17:19 UTC 2012
#16567: Can't create categories with different names but similar slugs on Edit Post
screen
----------------------------+--------------------
Reporter: jeffreymcmanus | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Administration | Version: 3.0.5
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+--------------------
Comment (by technosailor):
The problem is query_var collision. sanitize_title() is going to strip
special chars like # in C# for the slug. So C# does in fact become 'c' as
does C++ or just C.
I don't agree that wp_insert_term should be where the checks are
happening. It adds a potentially unneeded query. We should not be doing
wp_insert_term if term_exists. I believe the existing functionality is as
it should be. I respect the problem but it's really edge and a core
behavior modification just doesn't feel warranted. That's my opinion
though.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16567#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list