From f19c9252cd2a2f1f2bfa450182148a265c35c4b1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 18 Nov 2005 09:30:19 +0000 Subject: [PATCH] Don't strip all spaces. fixes #1899 git-svn-id: https://develop.svn.wordpress.org/trunk@3147 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; } }