From cc68dcede33b6a0389fef08d1db8633f187a44d4 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Thu, 3 Jan 2013 06:09:09 +0000 Subject: [PATCH] Don't include the default columns="3" in a gallery shortcode. Shortcode attributes are strings; fix a variable type error in wp.media.gallery defaults. props adamsilverstein. see #22919. git-svn-id: https://develop.svn.wordpress.org/trunk@23247 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 34777677e6..a866e4716a 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -167,7 +167,7 @@ itemtag: 'dl', icontag: 'dt', captiontag: 'dd', - columns: 3, + columns: '3', size: 'thumbnail', orderby: 'menu_order ID' },