Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 09:38:45 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Remove a bunch of unneeded globals and clean up some code in Core component. See #3989.

File:
1 edited

Legend:

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

    r5672 r5683  
    429429// **** Default BuddyPress admin bar logo ********
    430430function bp_adminbar_logo() {
    431     global $bp;
    432 
    433431    echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>';
    434432}
     
    436434// **** "Log In" and "Sign Up" links (Visible when not logged in) ********
    437435function bp_adminbar_login_menu() {
    438     global $bp;
    439436
    440437    if ( is_user_logged_in() )
     
    525522// **** "Random" Menu (visible when not logged in) ********
    526523function bp_adminbar_random_menu() {
    527     global $bp; ?>
     524?>
    528525
    529526    <li class="align-right" id="bp-adminbar-visitrandom-menu">
     
    653650}
    654651add_action( 'bp_init', 'bp_core_load_buddybar_css' );
     652
    655653?>
Note: See TracChangeset for help on using the changeset viewer.