[wp-trac] [WordPress Trac] #28641: wp_enqueue_media() breaks media library

WordPress Trac noreply at wordpress.org
Sat Jun 28 17:12:03 UTC 2014

#28641: wp_enqueue_media() breaks media library
 Reporter:  McGuive7      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, administration

Comment (by ericlewis):

 Quick response: you shouldn't be enqueueing media on every admin page
 request. Use the $hook_suffix provided by the `admin_enqueue_scripts` hook
 to only load your script on the admin page you want it to load on.

 I'll give a fuller response when I have some more time next week.

Ticket URL: <https://core.trac.wordpress.org/ticket/28641#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list