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-core/classes/class-bp-core.php

    r14026 r14029  
    277277
    278278        // Only fully deprecate the legacy navigation globals if BP Classic is not active.
    279         if ( ! function_exists( 'bp_classic' ) ) {
     279        if ( ! bp_is_classic() ) {
    280280            // Backward compatibility for plugins modifying the legacy bp_nav and bp_options_nav global properties.
    281281            $bp->bp_nav         = new BP_Core_BP_Nav_BackCompat();
Note: See TracChangeset for help on using the changeset viewer.