From 5c611cde9d074a43d4e119075eee3afc8e35e2b2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 2 Dec 2012 16:55:58 +0000 Subject: [PATCH] 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 --- wp-includes/js/media-editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index ea254e8ee8..6d3046420a 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -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,