[wp-trac] [WordPress Trac] #27753: wp_enqueue_media() breaks featured image functionality

WordPress Trac noreply at wordpress.org
Fri May 23 21:29:49 UTC 2014


#27753: wp_enqueue_media() breaks featured image functionality
--------------------------+------------------------------
 Reporter:  hovida        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.8.2
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------
Changes (by ericlewis):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 `wp_enqueue_media()` consumes an arguments hash which includes an option
 for `post`, which you can pass anything that `get_post()`. This feeds into
 the JS of the media experience for Edit Post-specific functionality, so it
 can contextually know which post you are editing.
 [https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-admin/edit-
 form-advanced.php#L38 Core does this], and so should you.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27753#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list