mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
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({
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user