[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 08:54:50 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  |  
-------------------------------------+--------------------------------------
Changes (by azaozz):

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


Comment:

 This breaks the gallery as it allows identical slugs for attachments with
 different parents. Since posts are not hierarchical like pages, some of
 the rewrite rules depend on all attachments having unique slugs.

 Is there any particular need for this patch?

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


More information about the wp-trac mailing list