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