WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/27/12 20:04:34 (5 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/edit-form-advanced.php

    r22007 r22072  
    1818if ( post_type_supports($post_type, 'editor') || post_type_supports($post_type, 'thumbnail') ) { 
    1919    add_thickbox(); 
    20     wp_enqueue_script('media-upload'); 
    21     wp_enqueue_script( 'media-views' ); 
     20 
     21    wp_enqueue_script( 'media-upload' ); 
    2222    wp_enqueue_style( 'media-views' ); 
    2323    wp_plupload_default_settings(); 
    2424    add_action( 'admin_footer', 'wp_print_media_templates' ); 
    25  
    26     wp_enqueue_script( 'mce-view' ); 
    2725} 
    2826 
Note: See TracChangeset for help on using the changeset viewer.