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
This commit is contained in:
Ryan Boren 2013-04-17 13:50:12 +00:00
parent 3841d591e6
commit d1675fcea4

View File

@ -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