From 139a25132403dc4d5448dab61fbea87c215e0f8c Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 18 Nov 2005 09:30:19 +0000 Subject: [PATCH] Don't strip all spaces. fixes #1899 git-svn-id: http://svn.automattic.com/wordpress/trunk@3147 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 93556622bd..23be267c74 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -307,12 +307,12 @@ function myPload( str ) { for( x=0; x < str.length; x++) { andy = str.charAt(x); if ( comma.indexOf(andy) != -1 ) { + currentElement = currentElement.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // trim fixedExplode[count] = currentElement; currentElement = ""; count++; } else { - if ( ' ' != andy ) - currentElement += andy; + currentElement += andy; } }