Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Prevent accidental body class concatenation by replacing (no-)customi…

…ze-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: http://core.svn.wordpress.org/trunk@22132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 1191d6383049fb23e54a716312b8bb93698a9970 1 parent 8961dc5
Jon Cave authored October 07, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  wp-includes/theme.php
2  wp-includes/theme.php
@@ -1686,7 +1686,7 @@ function wp_customize_support_script() {
1686 1686
 			request = true;
1687 1687
 <?php		endif; ?>
1688 1688
 
1689  
-			b[c] = b[c].replace( rcs, '' );
  1689
+			b[c] = b[c].replace( rcs, ' ' );
1690 1690
 			b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
1691 1691
 		}());
1692 1692
 	</script>

0 notes on commit 1191d63

Please sign in to comment.
Something went wrong with that request. Please try again.