Add compat code for 'image' post format.

see #19570. props wonderboymusic.

git-svn-id: http://core.svn.wordpress.org/trunk@23847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith
2013-03-29 05:21:23 +00:00
parent 2840f02efc
commit 22b45b2fbb
3 changed files with 32 additions and 5 deletions

View File

@@ -118,7 +118,7 @@ window.wp = window.wp || {};
mediaPreview('video', url, mime);
} else {
// set the hidden input's value
$field.val(url);
$field.val(id);
// Show the image in the placeholder
$el.html('<img src="' + url + '" />');
$holder.removeClass('empty').show();