From a24f3fcefc3e9cd491510e2d72bfbece70fd51d2 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sun, 7 Oct 2012 14:58:12 +0000 Subject: [PATCH] Prevent accidental body class concatenation by replacing (no-)customize-support with a space The regular expression used by wp_customize_support_script() replaces all spaces surrounding the matching class. This caused other classes to be merged together. Props johnpbloch, SergeyBiryukov. Fixes #22103. git-svn-id: https://develop.svn.wordpress.org/trunk@22132 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 9557cd2964..5992ff17a4 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1686,7 +1686,7 @@ function wp_customize_support_script() { request = true; - b[c] = b[c].replace( rcs, '' ); + b[c] = b[c].replace( rcs, ' ' ); b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; }());