Make WordPress Core

Changeset 22132


Ignore:
Timestamp:
10/07/2012 02:58:12 PM (12 years ago)
Author:
duck_
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r21713 r22132  
    16871687<?php       endif; ?>
    16881688
    1689             b[c] = b[c].replace( rcs, '' );
     1689            b[c] = b[c].replace( rcs, ' ' );
    16901690            b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
    16911691        }());
Note: See TracChangeset for help on using the changeset viewer.