Opened 12 years ago
Closed 12 years ago
#22103 closed defect (bug) (fixed)
wp_customize_support_script() removes spaces separating classes
Reported by: | johnpbloch | Owned by: | duck_ |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | major | Version: | 3.5 |
Component: | Customize | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
When 'no-customize-support' is removed from the body classes via javascript, the surrounding spaces are also removed. When the class was in the middle of the body class (in my case, between admin-bar and custom-background, the surrounding classes get mashed together (e.g. admin-barcustom-background). Patch to follow.
Attachments (2)
Change History (8)
#1
@
12 years ago
Related: #20896 - Theme Customizer: Add "no-customize-support" class to the body tag by default
#2
@
12 years ago
- Component changed from General to Appearance
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.5
- Severity changed from normal to major
Confirmed. [22107] made it more prominent.
To reproduce, just set a custom background and visit the site. The custom background will only be displayed for a fraction of a second until wp_customize_support_script()
runs.
A single space in line 1689 seems enough.
#3
@
12 years ago
22103.2.patch Works for me. This was also wreaking havoc with custom-backgrounds not applying correctly.
Leave spaces intact