Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/07/2012 02:16:37 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix toolbar if running 1.5 branch on WordPress 3.3/3.4. See #3983 (1.5 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-adminbar.php

    r5628 r5678  
    6666 * Add a menu for the root site of this BuddyPress network
    6767 *
    68  * @global type $bp
    6968 * @global type $wp_admin_bar
    7069 * @return If in ajax
    7170 */
    7271function bp_admin_bar_root_site() {
    73     global $bp, $wp_admin_bar;
     72    global $wp_admin_bar;
    7473
    7574    // Create the root blog menu
     
    113112 */
    114113function bp_admin_bar_my_sites_menu() {
    115     global $wpdb, $wp_admin_bar;
     114    global $wp_admin_bar;
    116115
    117116    /* Add the 'My Sites' menu if the user has more than one site. */
     
    217216
    218217    $update_title = array( );
    219     if ( $wordpress_update_count )
     218    if ( !empty( $wordpress_update_count ) )
    220219        $update_title[] = sprintf( __( '%d WordPress Update' ), $wordpress_update_count );
    221220    if ( $plugin_update_count )
     
    237236 */
    238237function bp_core_load_admin_bar_css() {
    239     global $wp_version;
    240238
    241239    if ( !bp_use_wp_admin_bar() )
Note: See TracChangeset for help on using the changeset viewer.