Make WordPress Core


Ignore:
Timestamp:
09/27/2012 08:04:34 PM (12 years ago)
Author:
koopersmith
Message:

Add QuickPress support for new media workflow.

  • Adds the code required to include the new media scripts, styles, and settings to media_button().
  • Improves script dependencies, namely making media-upload require media-views.
  • Some CSS tweaks for the making the new button work well with QuickPress.

see #21390, fixes #22021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r22039 r22072  
    378378 */
    379379function media_buttons($editor_id = 'content') {
     380    wp_enqueue_script( 'media-upload' );
     381    wp_enqueue_style( 'media-views' );
     382    wp_plupload_default_settings();
     383    add_action( 'admin_footer', 'wp_print_media_templates' );
     384
    380385    $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
    381386
Note: See TracChangeset for help on using the changeset viewer.