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/admin/bp-core-settings.php

    r7965 r8568  
    5050}
    5151
    52 /**
    53  * If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over
    54  * to the WP Toolbar.
    55  *
    56  * @since BuddyPress (1.6)
    57  */
    58 function bp_admin_setting_callback_force_buddybar() {
    59 ?>
    60 
    61         <input id="_bp_force_buddybar" name="_bp_force_buddybar" type="checkbox" value="1" <?php checked( ! bp_force_buddybar( true ) ); ?> />
    62         <label for="_bp_force_buddybar"><?php _e( 'Switch to WordPress Toolbar', 'buddypress' ); ?></label>
    63 
    64 <?php
    65 }
    66 
    6752/** Activity *******************************************************************/
    6853
     
    116101
    117102<?php
    118 }
    119 
    120 /**
    121  * Sanitization for _bp_force_buddyvar
    122  *
    123  * If upgraded to 1.6 and you chose to keep the BuddyBar, a checkbox asks if you want to switch to
    124  * the WP Toolbar. The option we store is 1 if the BuddyBar is forced on, so we use this function
    125  * to flip the boolean before saving the intval.
    126  *
    127  * @since BuddyPress (1.6)
    128  * @access Private
    129  */
    130 function bp_admin_sanitize_callback_force_buddybar( $value = false ) {
    131         return $value ? 0 : 1;
    132103}
    133104
Note: See TracChangeset for help on using the changeset viewer.