Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/23/2024 03:16:00 AM (3 years ago)
Author:
imath
Message:

Deprecate bp_use_wp_admin_bar() & BP_USE_WP_ADMIN_BAR

This function and constant were useful when BuddyPress was including an alternative toolbar to the WordPress Admin Bar called the "BuddyBar". The BuddyBar was removed in [12893] but we forgot to deprecate bp_use_wp_admin_bar() & BP_USE_WP_ADMIN_BAR. This commit is finally achieving the step we missed almost 3 years ago.

Props espellcaste, emaralive

Fixes #9104
Closes ​https://github.com/buddypress/buddypress/pull/234

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-component.php

    r13662 r13741  
    808808
    809809                // Bail if this is an ajax request.
    810                 if ( defined( 'DOING_AJAX' ) ) {
    811                         return;
    812                 }
    813 
    814                 // Do not proceed if BP_USE_WP_ADMIN_BAR constant is not set or is false.
    815                 if ( ! bp_use_wp_admin_bar() ) {
     810                if ( wp_doing_ajax() ) {
    816811                        return;
    817812                }
Note: See TracChangeset for help on using the changeset viewer.