From 676d0c8b16e7a79f945dcd3e28da0472dce6b81d 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: https://develop.svn.wordpress.org/trunk@24289 602fd350-edb4-49c9-b593-d223f7449a82 --- 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