Use wp.media, not media, in media-editor.js. see #22676.
git-svn-id: https://develop.svn.wordpress.org/trunk@22972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dff51dff56
commit
5c611cde9d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user