From 781ab16abe32b2b52b8a07d6d26fa3dd854b375c 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: http://core.svn.wordpress.org/trunk@23247 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' },