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

git-svn-id: http://core.svn.wordpress.org/trunk@22972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-02 16:55:58 +00:00
parent cc0a122a7a
commit 06e2e684dd

View File

@ -210,7 +210,7 @@
// Collect the attributes that were not included in `args`.
others = _.omit( attrs, 'id', 'ids', 'include', 'exclude', 'orderby', 'order' );
query = media.query( args );
query = wp.media.query( args );
query.gallery = new Backbone.Model( others );
return query;
},
@ -474,7 +474,7 @@
options.post_title = props.title;
}
return media.post( 'send-attachment-to-editor', {
return wp.media.post( 'send-attachment-to-editor', {
nonce: wp.media.view.settings.nonce.sendToEditor,
attachment: options,
html: html,
@ -485,7 +485,7 @@
},
link: function( embed ) {
return media.post( 'send-link-to-editor', {
return wp.media.post( 'send-link-to-editor', {
nonce: wp.media.view.settings.nonce.sendToEditor,
src: embed.linkUrl,
title: embed.title,