[wp-trac] Re: [WordPress Trac] #9726: wp_unique_post_slug() not used when inserting attachment from media / add new

WordPress Trac wp-trac at lists.automattic.com
Tue May 26 09:09:57 GMT 2009


#9726: wp_unique_post_slug() not used when inserting attachment from media / add
new
-------------------------------------+--------------------------------------
 Reporter:  Denis-de-Bernardy        |        Owner:          
     Type:  defect (bug)             |       Status:  reopened
 Priority:  normal                   |    Milestone:  2.8     
Component:  Upload                   |      Version:  2.8     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch tested commit  |  
-------------------------------------+--------------------------------------

Comment(by azaozz):

 Perhaps the proper solution is to check attachment slugs against other
 attachments and also pages.

 To reproduce with the patch: upload a file to a post; upload another file
 with the same name to different post; visit the attachment post for one of
 the files. Both attachment posts are displayed (may be theme dependent but
 happens in the default theme).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9726#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list