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: https://develop.svn.wordpress.org/trunk@24289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-05-17 23:06:34 +00:00
parent 53a1416c34
commit 676d0c8b16
1 changed files with 2 additions and 2 deletions

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