Skip to:
Content

BuddyPress.org

Changeset 14200


Ignore:
Timestamp:
06/03/2026 05:13:41 PM (4 months ago)
Author:
dcavins
Message:

Fix 'no-js' body class logic for BuddyPress pages.

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

Props emaralive.

Fixes 9304.

Location:
trunk/src/bp-templates
Files:
2 edited

Legend:

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

    r14175 r14200  
    479479        public function add_nojs_body_class( $classes ) {
    480480                /** This filter is documented in bp-core/bp-core-dependency.php */
    481                 if ( ! is_buddypress() || apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
     481                if ( ! is_buddypress() && apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
    482482                        return $classes;
    483483                }
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r14175 r14200  
    486486        public function add_nojs_body_class( $classes ) {
    487487                /** This filter is documented in bp-core/bp-core-dependency.php */
    488                 if ( ! is_buddypress() || apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
     488                if ( ! is_buddypress() && apply_filters( 'bp_enqueue_assets_in_bp_pages_only', true ) ) {
    489489                        return $classes;
    490490                }
Note: See TracChangeset for help on using the changeset viewer.