From d1675fcea4d60147aedebc43b5b8bdad8cbeee54 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 17 Apr 2013 13:50:12 +0000 Subject: [PATCH] Revert attachment.url back to props.url. Fixes error that prevents inserting media into the editor. see #24046 git-svn-id: http://core.svn.wordpress.org/trunk@24009 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index fce5fedbe1..e3c7e4d8d7 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -191,7 +191,7 @@ props = wp.media.string.props( props, attachment ); classes = props.classes || []; - img.src = attachment.url; + img.src = props.url; _.extend( img, _.pick( props, 'width', 'height', 'alt' ) ); // Only assign the align class to the image if we're not printing