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; } }