Skip to:
Content

BuddyPress.org

Changeset 14202


Ignore:
Timestamp:
06/03/2026 05:16:06 PM (4 months 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.

Location:
branches/14.0/src/bp-templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-templates/bp-legacy/buddypress-functions.php

    r14174 r14202  
    478478        public function add_nojs_body_class( $classes ) {
    479479                /** This filter is documented in bp-core/bp-core-dependency.php */
    480                 if ( ! is_buddypress() || apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
     480                if ( ! is_buddypress() && apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
    481481                        return $classes;
    482482                }
  • 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.