Make WordPress Core


Ignore:
Timestamp:
11/14/2012 09:06:10 AM (14 years ago)
Author:
koopersmith
Message:

Media: Make edit gallery button use new media. see #21390.

File:
1 edited

Legend:

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

    r22557 r22568  
    13011301 * @since 3.5.0
    13021302 */
    1303 function wp_enqueue_media() {
     1303function wp_enqueue_media( $args = array() ) {
     1304        $defaults = array(
     1305                'post' => null,
     1306        );
     1307        $args = wp_parse_args( $args, $defaults );
     1308
    13041309        // We're going to pass the old thickbox media tabs to `media_upload_tabs`
    13051310        // to ensure plugins will work. We will then unset those tabs.
     
    13211326                ), admin_url('media-upload.php') ),
    13221327        );
     1328
     1329        if ( isset( $args['post'] ) )
     1330                $settings['postId'] = get_post( $args['post'] )->ID;
    13231331
    13241332        wp_localize_script( 'media-views', '_wpMediaViewsL10n', array(
Note: See TracChangeset for help on using the changeset viewer.