Skip to:
Content

BuddyPress.org

Changeset 8602


Ignore:
Timestamp:
07/12/2014 12:49:05 AM (10 years ago)
Author:
boonebgorges
Message:

Undeprecate bp_force_buddybar()

The change introduced in r8579 means that bp_force_buddybar() is still used in
a BP core function, and thus should not be deprecated. (If kept in the
deprecated functions file, a fatal error is caused when these files are not
loaded.)

See #5390

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

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

    r8568 r8602  
    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 */
     534function bp_force_buddybar( $default = true ) {
     535    return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );
    521536}
    522537
  • trunk/src/bp-core/deprecated/2.1.php

    r8568 r8602  
    360360}
    361361add_action( 'bp_init', 'bp_core_load_buddybar_css' );
    362 
    363 /**
    364  * Should the old BuddyBar be forced in place of the WP admin bar?
    365  *
    366  * @since BuddyPress (1.6.0)
    367  * @deprecated BuddyPress (2.1.0)
    368  *
    369  * @uses bp_get_option() To get the BuddyBar option.
    370  *
    371  * @param bool $default Optional. Fallback value if not found in the database.
    372  *        Default: true.
    373  * @return bool True if the BuddyBar should be forced on, otherwise false.
    374  */
    375 function bp_force_buddybar( $default = true ) {
    376     return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );
    377 }
    378362
    379363/**
Note: See TracChangeset for help on using the changeset viewer.