[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:48:07 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  |
------------------------------+-----------------------
Changes (by nacin):

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


Comment:

 [22843] does not work in QuickPress, because no post ID is passed in
 media_buttons() (via get_post()) to wp_enqueue_media(), which means no
 postId in JS. I imagine that media.view.settings.postId should be 0 by
 default, if no setting got passed from PHP.

 Separately, QuickPress tests the $post_ID global. I'm fine with checking
 that global if get_post() finds nothing in the $post global.

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


More information about the wp-trac mailing list