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

WordPress Trac noreply at wordpress.org
Sun Nov 30 04:48:56 UTC 2014


#18962: Allow duplicate slugs for different content
--------------------------------------+-----------------------------
 Reporter:  maorb                     |       Owner:  wonderboymusic
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.1
Component:  Permalinks                |     Version:  2.9
 Severity:  major                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------
Changes (by johnbillion):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30629"]:
 {{{
 #!CommitTicketReference repository="" revision="30629"
 Check attachments as well as the current post type when checking for
 duplicate post slugs. This avoids creating a page with a slug which
 conflicts with an existing attachment (the inverse is already handled).

 Updates the existing test for pages which should take priority over
 attachments in cases where an existing clash exists.

 Fixes #18962
 Props boonebgorges
 }}}

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


More information about the wp-trac mailing list