Post formats: when uploading an image or selecting it from the media modal, don't wrap it in a link, props kovshenin, fixes #24289

git-svn-id: http://core.svn.wordpress.org/trunk@24289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-05-17 23:06:34 +00:00
parent 316bfc63a2
commit 9a62abbea5

View File

@ -35,7 +35,7 @@ window.wp = window.wp || {};
var $holder, $field, html = wp.media.string.image({
size : 'full',
align : false,
link : getUserSetting( 'urlbutton' )
link : 'none'
}, attachment.attributes );
$holder = $('.wp-format-media-holder[data-format=image]');
@ -318,7 +318,7 @@ window.wp = window.wp || {};
html = wp.media.string.image({
size: 'full',
align : false,
link : getUserSetting( 'urlbutton' )
link : 'none'
}, attachment);
// set the hidden input's value