[wp-trac] [WordPress Trac] #15665: Page name won't work if the parent page has an attachment with the same name

WordPress Trac noreply at wordpress.org
Sun Feb 23 20:18:53 UTC 2014


#15665: Page name won't work if the parent page has an attachment with the same
name
-------------------------------------------+---------------------
 Reporter:  designsimply                   |       Owner:  nacin
     Type:  defect (bug)                   |      Status:  closed
 Priority:  high                           |   Milestone:  3.5
Component:  Permalinks                     |     Version:  3.1
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  has-patch needs-testing early  |     Focuses:
-------------------------------------------+---------------------

Comment (by aaroncampbell):

 The same problem occurs with posts if you're using the popular
 `/%postname%/` permalink structure.  If you upload an image and then
 create a post that gets the same slug as the image (different post type,
 so there is no collision protection here), the front end will display the
 attachment rather than the post at site.com/some-shared-slug

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


More information about the wp-trac mailing list