Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20850, comment 4


Ignore:
Timestamp:
06/08/2012 06:38:16 PM (13 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20850, comment 4

    initial v1  
    22> Is there a reason duplicate term checking in `wp_insert_term()` uses the slug instead of the name?
    33
    4 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.
     4Probably 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 multiple casings and that's why it's still allowed.