WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #22118

Timestamp:
10/06/12 18:04:15 (9 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22118

    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #22118 – Description

    initial v2  
    11When wp_customize_support_script() runs, it removes 'no-customize-support' from the list of classes applied to the body tag. 
    22 
    3 The regular expression used to match that class includes whitespace either side of the class name, and then replaces the entire thing with ''. 
     3The regular expression used to match that class includes whitespace either side of the class name, and then replaces the entire thing with `''`. 
    44 
    55This results in concatenation of any previously-adjacent classes, which in turn can leave you with a body class looking something like this: 
     
    99Note: `admin-barcustom-background`, which breaks any CSS applied to either of those classes. 
    1010 
    11 Instead of replacing with '', just replace with ' ', which will leave a space and thus leave both classes being valid. 
     11Instead of replacing with `''`, just replace with `' '`, which will leave a space and thus leave both classes being valid.