Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/03/2026 05:16:06 PM (6 weeks ago)
Author:
dcavins
Message:

Fix 'no-js' body class logic for BuddyPress pages. (14.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/14.0/src/bp-templates/bp-nouveau/buddypress-functions.php

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