WordPress.org

Make WordPress Core

Changeset 22972


Ignore:
Timestamp:
12/02/2012 04:55:58 PM (5 years ago)
Author:
nacin
Message:

Use wp.media, not media, in media-editor.js. see #22676.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-editor.js

    r22952 r22972  
    211211                others = _.omit( attrs, 'id', 'ids', 'include', 'exclude', 'orderby', 'order' );
    212212
    213                 query = media.query( args );
     213                query = wp.media.query( args );
    214214                query.gallery = new Backbone.Model( others );
    215215                return query;
     
    475475                }
    476476
    477                 return media.post( 'send-attachment-to-editor', {
     477                return wp.media.post( 'send-attachment-to-editor', {
    478478                    nonce:      wp.media.view.settings.nonce.sendToEditor,
    479479                    attachment: options,
     
    486486
    487487            link: function( embed ) {
    488                 return media.post( 'send-link-to-editor', {
     488                return wp.media.post( 'send-link-to-editor', {
    489489                    nonce:   wp.media.view.settings.nonce.sendToEditor,
    490490                    src:     embed.linkUrl,
Note: See TracChangeset for help on using the changeset viewer.