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

WordPress Trac noreply at wordpress.org
Mon Nov 26 17:58:51 UTC 2012


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

Comment (by ryan):

 wp_enqueue_media() sometimes gets a post object, sometimes and ID in
 .2.diff, but it looks like wp_enqueue_media() uses get_post() so it
 accepts either. Looks good so far.

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


More information about the wp-trac mailing list