[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:38:18 GMT 2009


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

Comment(by azaozz):

 Replying to [comment:8 Denis-de-Bernardy]:
 > That's precisely what wp_unique_post_slug() is supposed to do. :-)

 No, it only checks for posts with the same parent. Attachment slugs need
 to be unique globally.

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


More information about the wp-trac mailing list