Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/15/2010 04:43:07 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Use is_super_admin instead of deprecated is_site_admin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-xprofile.php

    r3186 r3192  
    132132 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals()
    133133 * @global $wpdb WordPress DB access object.
    134  * @uses is_site_admin() returns true if the current user is a site admin, false if not
     134 * @uses is_super_admin() returns true if the current user is a site admin, false if not
    135135 * @uses bp_xprofile_install() runs the installation of DB tables for the xprofile component
    136136 * @uses wp_enqueue_script() Adds a JS file to the JS queue ready for output
     
    142142    global $wpdb, $bp;
    143143
    144     if ( !is_site_admin() )
     144    if ( !is_super_admin() )
    145145        return false;
    146146
     
    207207
    208208    /* Don't show this menu to non site admins or if you're viewing your own profile */
    209     if ( !is_site_admin() || bp_is_my_profile() )
     209    if ( !is_super_admin() || bp_is_my_profile() )
    210210        return false;
    211211    ?>
     
    268268    global $bp;
    269269
    270     if ( !bp_is_my_profile() && !is_site_admin() )
     270    if ( !bp_is_my_profile() && !is_super_admin() )
    271271        return false;
    272272
     
    358358    global $bp;
    359359
    360     if ( !bp_is_my_profile() && !is_site_admin() )
     360    if ( !bp_is_my_profile() && !is_super_admin() )
    361361        return false;
    362362
     
    427427    check_admin_referer( 'bp_delete_avatar_link' );
    428428
    429     if ( !bp_is_my_profile() && !is_site_admin() )
     429    if ( !bp_is_my_profile() && !is_super_admin() )
    430430        return false;
    431431
Note: See TracChangeset for help on using the changeset viewer.