[wp-trac] [WordPress Trac] #22085: Correctly assign post_parent to uploaded attachments in the new media modal

WordPress Trac noreply at wordpress.org
Sat Nov 24 17:02:01 UTC 2012


#22085: Correctly assign post_parent to uploaded attachments in the new media modal
--------------------------+--------------------------
 Reporter:  koopersmith   |       Owner:  koopersmith
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------------
Changes (by mdgl):

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


Comment:

 Reopening because current behaviour at 3.5-RC1 appears to be rather
 different to previous releases. As pointed out by helenyhou (comment:2):

   ...assignment already happens on upload '''or insertion''' of a
 previously-unattached attachment...

 Presently, we do not appear to set post_parent when inserting an
 '''existing''' unattached media item into a post/page, only when uploading
 a '''new''' media item whilst editing a post/page.  This has numerous
 consequences (see comment:ticket:22556:3).

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


More information about the wp-trac mailing list