From 06e2e684ddadcea6317342d0d240a41099f90964 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: http://core.svn.wordpress.org/trunk@22972 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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,