Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/19/2021 04:25:39 AM (5 years ago)
Author:
imath
Message:

Entirely remove the code of the deprecated BuddyBar

The BuddyBar has been deprecated in version 2.1. We are now completely removing it.

Props r-a-y, DJPaul

Fixes #7729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-options.php

    r11939 r12893  
    9090        // HeartBeat is on to refresh activities.
    9191        '_bp_enable_heartbeat_refresh'         => true,
    92 
    93         /* BuddyBar **********************************************************/
    94 
    95         // Force the BuddyBar.
    96         '_bp_force_buddybar'                   => false,
    9792
    9893        /* Legacy *********************************************/
     
    669664
    670665/**
    671  * Should the old BuddyBar be forced in place of the WP admin bar?
    672  *
    673  * @since 1.6.0
    674  *
    675  * @param bool $default Optional. Fallback value if not found in the database.
    676  *                      Default: true.
    677  * @return bool True if the BuddyBar should be forced on, otherwise false.
    678  */
    679 function bp_force_buddybar( $default = true ) {
    680 
    681     /**
    682      * Filters whether or not BuddyBar should be forced in place of WP Admin Bar.
    683      *
    684      * @since 1.6.0
    685      *
    686      * @param bool $value Whether or not BuddyBar should be forced in place of WP Admin Bar.
    687      */
    688     return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );
    689 }
    690 
    691 /**
    692666 * Check whether Akismet is enabled.
    693667 *
Note: See TracChangeset for help on using the changeset viewer.