Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/03/2026 06:45:00 PM (5 months ago)
Author:
dcavins
Message:

Fix 'no-js' body class logic for BuddyPress pages. (12.0 branch)

This is a correction to 14175 which attempted to address the regression introduced at [13672], part of [13418].

Props emaralive.

Fixes 9304.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-templates/bp-nouveau/buddypress-functions.php

    r14204 r14205  
    474474        public function add_nojs_body_class( $classes ) {
    475475                /** This filter is documented in bp-core/bp-core-dependency.php */
    476                 if ( ! is_buddypress() || apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
     476                if ( ! is_buddypress() && apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
    477477                        return $classes;
    478478                }
Note: See TracChangeset for help on using the changeset viewer.