From f5c165c23f01763eda7acaadfd186118c7e38998 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 2 May 2013 22:07:37 +0000 Subject: [PATCH] Respect the link to setting when inserting a gallery. Props SergeyBiryukov fixes #23298 git-svn-id: https://develop.svn.wordpress.org/trunk@24161 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 1 + wp-includes/media-template.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 3e2a651eb4..7c96148527 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -259,6 +259,7 @@ icontag: 'dt', captiontag: 'dd', columns: '3', + link: 'post', size: 'thumbnail', orderby: 'menu_order ID' }, diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 7e79efdaf4..d4840903de 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -347,12 +347,12 @@ function wp_print_media_templates() { data-user-setting="urlbutton" <# } #>> - - +