Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2014 04:43:00 PM (12 years ago)
Author:
boonebgorges
Message:

Formally deprecate the BuddyBar.

BuddyPress has been fully compatible with the WordPress toolbar since 1.6. We
have provided backward compatible support for the BuddyBar through the
BP_USE_WP_ADMIN_BAR constant. This changeset retains this support, but
officially deprecates it, with the following changes:

  • All UI related to the BuddyBar has been removed from the Dashboard setings panels
  • BuddyBar-related code has been moved to the deprecated functions folder
  • A _doing_it_wrong() notice is now thrown when loading the BuddyBar

Fixes #5390

Props DJPaul for an initial patch

File:
1 edited

Legend:

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

    r8553 r8568  
    519519function bp_restrict_group_creation( $default = true ) {
    520520        return (bool) apply_filters( 'bp_restrict_group_creation', (bool) bp_get_option( 'bp_restrict_group_creation', $default ) );
    521 }
    522 
    523 /**
    524  * Should the old BuddyBar be forced in place of the WP admin bar?
    525  *
    526  * @since BuddyPress (1.6.0)
    527  *
    528  * @uses bp_get_option() To get the BuddyBar option.
    529  *
    530  * @param bool $default Optional. Fallback value if not found in the database.
    531  *        Default: true.
    532  * @return bool True if the BuddyBar should be forced on, otherwise false.
    533  */
    534 function bp_force_buddybar( $default = true ) {
    535         return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );
    536521}
    537522
Note: See TracChangeset for help on using the changeset viewer.