Make WordPress Core


Ignore:
Timestamp:
03/05/2014 03:53:19 AM (11 years ago)
Author:
azaozz
Message:

Restyles the modal for attaching media to posts, take II (also some autoprefixer and imagemin). Props avryl, see #26952.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r27389 r27403  
    494494        $scripts->add( 'list-revisions', "/wp-includes/js/wp-list-revisions$suffix.js" );
    495495
    496         $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery-ui-draggable' ), false, 1 );
     496        $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery' ), false, 1 );
     497        did_action( 'init' ) && $scripts->localize( 'media', 'attachMediaBoxL10n', array(
     498            'error' => __( 'An error has occured. Please reload the page and try again.' )
     499        ));
    497500
    498501        $scripts->add( 'image-edit', "/wp-admin/js/image-edit$suffix.js", array('jquery', 'json2', 'imgareaselect'), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.