Skip to:
Content

BuddyPress.org

Changeset 2299


Ignore:
Timestamp:
01/15/2010 10:52:59 AM (15 years ago)
Author:
apeatling
Message:

Fixes #1561 - BuddyPress menu access in single WP.

File:
1 edited

Legend:

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

    r2276 r2299  
    8888if ( !function_exists( 'is_site_admin' ) ) {
    8989    function is_site_admin() {
    90         global $user_level;
    91 
    92         get_currentuserinfo();
    93 
    94         if ( 10 == $user_level )
     90        if ( current_user_can( 'manage_options' ) )
    9591            return true;
    9692
Note: See TracChangeset for help on using the changeset viewer.