From 9a62abbea56b55334889bf77434f4694d7ae67e8 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 17 May 2013 23:06:34 +0000 Subject: [PATCH] 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 --- wp-admin/js/post-formats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/post-formats.js b/wp-admin/js/post-formats.js index d7d36f0467..305637f3c8 100644 --- a/wp-admin/js/post-formats.js +++ b/wp-admin/js/post-formats.js @@ -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