[wp-trac] [WordPress Trac] #18962: Allow duplicate slugs for different content

WordPress Trac noreply at wordpress.org
Thu Sep 11 16:16:15 UTC 2014


#18962: Allow duplicate slugs for different content
-------------------------------------+-----------------------------
 Reporter:  maorb                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Rewrite Rules            |     Version:  2.9
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by JustinSainton):

 FWIW, just applied the patch to 4.0-src, and everything works as expected.
 Within the same post type, hierarchical or not, I cannot have duplicate
 slugs.  Across post types, hierarchical or not, I can have duplicate
 slugs.  This seems to have always been possible with non-hierarchical post
 types, but not with hierarchical.

 Also, I've noted that the ability to create taxonomy terms of the same
 name, across hierarchical custom taxonomies, seems to be possible as of
 this patch.

 I'm surely missing something, but this definitely seems to be an
 improvement.  Happy to dig into unit tests for this - if anyone has
 pointers for what specific assertions we should be testing for, I'm all
 ears - otherwise, I'll just give it a go.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18962#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list