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:
parent
316bfc63a2
commit
9a62abbea5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue