Make WordPress Core


Ignore:
Timestamp:
10/29/2012 06:56:23 AM (12 years ago)
Author:
koopersmith
Message:

Add a sidebar to the media modal.

  • Adds wp.media.view.Sidebar, to aid in rendering the sidebar.
  • Removes the directions from the Attachments view and shifts search into a separate view (wp.mce.view.Search) that can be relocated at will. This also serves to simplify the Attachments view by removing the nested list and $list parameters.
  • Show the toolbar on the featured image workflow, effectively requiring confirmation before closing the dialog.

see #21390, #21776, #21808.

File:
1 edited

Legend:

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

    r22236 r22321  
    324324    did_action( 'init' ) && $scripts->localize( 'media-views', '_wpMediaViewsL10n', array(
    325325        // Generic
    326         'insertMedia'           => __( 'Insert Media' ),
    327         'selectMediaSingular'   => __( 'Select a media file:' ),
    328         'selectMediaMultiple'   => __( 'Select one or more media files:' ),
     326        'insertMedia' => __( 'Insert Media' ),
     327        'search'      => __( 'Search' ),
    329328
    330329        // Library
     330        'mediaLibrary'          => __( 'Media Library' ),
    331331        'createNewGallery'      => __( 'Create a new gallery' ),
    332332        'insertIntoPost'        => __( 'Insert into post' ),
     
    334334
    335335        // Gallery
     336        'createGallery'          => __( 'Create Gallery' ),
    336337        'returnToLibrary'        => __( 'Return to media library' ),
    337338        'continueEditingGallery' => __( 'Continue editing gallery' ),
Note: See TracChangeset for help on using the changeset viewer.