Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/28/2012 10:05:51 PM (13 years ago)
Author:
djpaul
Message:

s/admin bar/toolbar. Fixes #4056

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r5758 r5868  
    429429}
    430430
    431 // **** Default BuddyPress admin bar logo ********
     431// **** Default BuddyPress Toolbar logo ********
    432432function bp_adminbar_logo() {
    433433    echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>';
     
    552552
    553553/**
    554  * Retrieve the admin bar display preference of a user based on context.
     554 * Retrieve the Toolbar display preference of a user based on context.
    555555 *
    556556 * This is a direct copy of WP's private _get_admin_bar_pref()
     
    563563 * @uses get_user_option()
    564564 *
    565  * @return bool Whether the admin bar should be showing for this user.
     565 * @return bool Whether the Toolbar should be showing for this user.
    566566 */
    567567function bp_get_admin_bar_pref( $context, $user = 0 ) {
     
    574574
    575575/**
    576  * Handle the Admin Bar/BuddyBar business
     576 * Handle the Toolbar/BuddyBar business
    577577 *
    578578 * @since 1.2.0
     
    594594    global $wp_version;
    595595
    596     // Don't show if admin bar is disabled for non-logged in users
     596    // Don't show if Toolbar is disabled for non-logged in users
    597597    if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) )
    598598        return;
    599599
    600     // Show the WordPress admin bar
     600    // Show the WordPress Toolbar
    601601    if ( bp_use_wp_admin_bar() && $wp_version >= 3.1 ) {
    602         // Respect user's admin bar display preferences
     602        // Respect user's Toolbar display preferences
    603603        if ( is_user_logged_in() && ( bp_get_admin_bar_pref( 'front', bp_loggedin_user_id() ) || bp_get_admin_bar_pref( 'admin', bp_loggedin_user_id() ) ) )
    604604            return;
     
    606606        show_admin_bar( true );
    607607
    608     // Hide the WordPress admin bar
     608    // Hide the WordPress Toolbar
    609609    } elseif ( !bp_use_wp_admin_bar() ) {
    610610
    611         // Keep the WP admin bar from loading
     611        // Keep the WP Toolbar from loading
    612612        show_admin_bar( false );
    613613
    614         // Actions used to build the BP admin bar
     614        // Actions used to build the BP Toolbar
    615615        add_action( 'bp_adminbar_logo',  'bp_adminbar_logo' );
    616616        add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu',         2   );
     
    619619        add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu',        100 );
    620620
    621         // Actions used to append BP admin bar to footer
     621        // Actions used to append BP Toolbar to footer
    622622        add_action( 'wp_footer',    'bp_core_admin_bar', 8 );
    623623        add_action( 'admin_footer', 'bp_core_admin_bar'    );
Note: See TracChangeset for help on using the changeset viewer.