Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/28/2024 03:30:07 AM (3 months ago)
Author:
espellcaste
Message:

Update the conditional that check if bp_classic is available.

Previously, we only checked if the bp_classic function was available, without checking if the plugin was also active.

Props imath, narenin, samedwards, and espellcaste.

Fixes #9181
Closes https://github.com/buddypress/buddypress/pull/371

File:
1 edited

Legend:

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

    r14022 r14029  
    126126            );
    127127
    128             // When BP Classic is activated, regular themes need this filter.
    129             if ( function_exists( 'bp_classic' ) ) {
     128            // When BP Classic is activated, regular themes need this filter. 
     129            if ( bp_is_classic() ) {
    130130                // Set the BP Uri for the Ajax customizer preview.
    131131                add_filter( 'bp_uri', array( $this, 'customizer_set_uri' ), 10, 1 );
Note: See TracChangeset for help on using the changeset viewer.