Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 11:00:59 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->is_item_admin and $bp->is_item_mod to use the _is_ functions isntead. Also fix some $bp globals in the process. See #3989.

File:
1 edited

Legend:

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

    r5329 r5687  
    44
    55function bp_groups_adminbar_admin_menu() {
    6     global $bp, $groups_template;
     6    global $bp;
    77
    88    if ( empty( $bp->groups->current_group ) )
     
    1010
    1111    // Don't show this menu to non site admins or if you're viewing your own profile
    12     if ( !current_user_can( 'edit_users' ) || !bp_current_user_can( 'bp_moderate' ) || ( !$bp->is_item_admin && !$bp->is_item_mod ) )
     12    if ( !current_user_can( 'edit_users' ) || !bp_current_user_can( 'bp_moderate' ) || ( bp_is_item_admin() && ! bp_is_item_mod() ) )
    1313        return false; ?>
    1414
Note: See TracChangeset for help on using the changeset viewer.