[wp-trac] [WordPress Trac] #27496: Improve loading of the various media components

WordPress Trac noreply at wordpress.org
Sun Mar 23 22:27:17 UTC 2014


#27496: Improve loading of the various media components
--------------------------+-------------------
 Reporter:  azaozz        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.9
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-------------------
 The media components are loaded with `wp_enqueue_media()`. Currently this
 is used in custom-background.php, custom-header.php, edit-form-
 advanced.php, class-wp-customize-control.php, and wp-
 admin/includes/media.php. Not all media components are needed in all of
 these cases.

 The (new) media-audiovideo.js and mce-view.js are needed only when TinyMCE
 is used. However TinyMCE can be used without the media modal and there is
 no direct correlation between running the `media_buttons` action and
 having media enqueued. For example PressThis uses `media_buttons` to add
 its own buttons, the media modal is not used there:
 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/press-
 this.php#L632.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27496>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list