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

WordPress Trac noreply at wordpress.org
Wed Jul 2 16:50:12 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 McGuive7):

 Hi Eric,

 Thanks for the explanation, and I would love to hear your longer response.

 Unfortunately, this call to `wp_enqueue_media()` is part of the [Titan
 Framework](https://github.com/gambitph/Titan-Framework), and is being
 enqueued somewhat indiscriminately. This may be an oversight, or it may
 just be technically challenging for the framework to know exactly when and
 where to add the enqueue across multiple, dynamically-generated options
 pages. Anyhow, not sure if I can expect the framework code to change
 anytime soon. . .

 I'd love to know if the issue is just that `wp_enqueue_media()` should not
 be called at all on the media library page, or if perhaps it's being
 called already on that page (although it seems like this should be an
 issue since the function checks if it's already been called, right?
 Something else entirely? I imagine there are probably lots of plugins
 calling `wp_enqueue_media()` across the board in the admin, and since this
 conflict only arises in WP 4.0 alpha, it seems like there are going to be
 lots of plugins causing the same issue. With all this in mind, is there a
 solution you'd suggest, either on the plugin/user end, or in WP core?

 Thanks!

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


More information about the wp-trac mailing list