Make WordPress Core


Ignore:
Timestamp:
11/07/2012 08:14:41 PM (13 years ago)
Author:
koopersmith
Message:

Media: Integrate the gallery workflow with the media menu.

wp.media.model.Query.more()

  • If a request has already been sent out for more attachments, return that request object instead of creating another.

wp.media.controller.Region

  • A region allows views to be swapped in and out of a section of the page without either view having to know about the other.
  • Application components can use the same callbacks and resources by leveraging Region.mode(), which triggers a set of callbacks to create or transform the current view, but only if necessary.

wp.media.view.Frame

  • Leverage Region controllers instead of forcing states to swap view objects, which causes states to fit more comfortably in the controller-camp.
  • Add previous(), a method to fetch the previous state id.
  • Separate out the default settings over several objects (so blank frames can be instantiated).

wp.media.view.MediaFrame

  • The base Frame used for media management: handles integration with the Modal and UploaderWindow views.

wp.media.view.MediaFrame.Post

  • Includes all default media states and callbacks necessary for inserting media into a post.

see #21390.

File:
1 edited

Legend:

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

    r22378 r22437  
    331331
    332332        // Upload
    333         'uploadFilesTitle' => __( 'Upload Files' ),
    334         'selectFiles'      => __( 'Select files' ),
     333        'uploadFilesTitle'  => __( 'Upload Files' ),
     334        'selectFiles'       => __( 'Select files' ),
     335        'uploadImagesTitle' => __( 'Upload Images' ),
    335336
    336337        // Library
     
    343344        'embedFromUrlTitle' => __( 'Embed From URL' ),
    344345
     346        // Batch
     347        'batchInsert'      => __( 'Batch insert' ),
     348        'cancelBatchTitle' => __( '← Cancel Batch' ),
     349
    345350        // Gallery
    346351        'createGalleryTitle' => __( 'Create Gallery' ),
     352        'editGalleryTitle'   => __( 'Edit Gallery' ),
     353        'cancelGalleryTitle' => __( '← Cancel Gallery' ),
    347354        'insertGallery'      => __( 'Insert gallery' ),
    348355        'updateGallery'      => __( 'Update gallery' ),
Note: See TracChangeset for help on using the changeset viewer.