Opened 4 months ago
Closed 4 weeks ago
#9304 closed defect (bug) (fixed)
'no-js' body class not being added correctly since BuddyPress 12.1.0
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 14.5.0 | Priority: | normal |
| Severity: | normal | Version: | 12.1.1 |
| Component: | Templates | Keywords: | has-patch |
| Cc: |
Description
r13672 added is_buddypress() checks before adding the 'no-js' body class.
However, the is_buddypress() check is done too early on the 'after_setup_theme' hook, so this means the 'no-js' body class is never added since BuddyPress 12+ and when the rewrites parser is enabled.
Need to delay the check. See attached patch.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Tested 9304.01.patch - works as expected.
Before patch: no-js class never added on BP pages because is_buddypress() returns false in constructor.
After patch: no-js class properly added, then replaced with js by BuddyPress JavaScript.
Thanks @r-a-y for the clean fix! +1 for commit.