Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2011 07:04:24 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Move bp_use_wp_admin_bar() call from global scope and into functions in bp-core-adminbar.php.

File:
1 edited

Legend:

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

    r5289 r5334  
    1313if ( !defined( 'ABSPATH' ) ) exit;
    1414
    15 if ( !bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) )
    16     return;
    17 
    1815/**
    1916 * Adds the secondary BuddyPress area to the my-account menu
     
    2724
    2825    // Bail if this is an ajax request
    29     if ( defined( 'DOING_AJAX' ) )
     26    if ( !bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) )
    3027        return;
    3128
     
    5552    $version = '2011116';
    5653
    57     if ( !bp_use_wp_admin_bar() )
     54    if ( !bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) )
    5855        return;
    5956
Note: See TracChangeset for help on using the changeset viewer.