Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/23/2024 03:16:00 AM (18 months 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/bp-core-dependency.php

    r13490 r13741  
    191191 */
    192192function bp_setup_admin_bar() {
    193     if ( bp_use_wp_admin_bar() ) {
    194 
    195         /**
    196          * Fires inside the 'bp_setup_admin_bar' function, where plugins should add items to the WP admin bar.
    197          *
    198          * This hook will only fire if bp_use_wp_admin_bar() returns true.
    199          *
    200          * @since 1.5.0
    201          */
    202         do_action( 'bp_setup_admin_bar', array() );
    203     }
     193    /**
     194     * Fires inside the 'bp_setup_admin_bar' function, where plugins should add items to the WP admin bar.
     195     *
     196     * @since 1.5.0
     197     */
     198    do_action( 'bp_setup_admin_bar', array() );
    204199}
    205200
Note: See TracChangeset for help on using the changeset viewer.