Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/14/2011 05:19:12 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Find/replace on is_super_admin() to use bp_current_user_can( 'bp_moderate' ). See #3740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r4939 r5329  
    1010 * @global object $bp Global BuddyPress settings object
    1111 * @global $wpdb WordPress DB access object.
    12  * @uses is_super_admin() returns true if the current user is a site admin, false if not
     12 * @uses bp_current_user_can() returns true if the current user is a site admin, false if not
    1313 * @uses bp_xprofile_install() runs the installation of DB tables for the xprofile component
    1414 * @uses wp_enqueue_script() Adds a JS file to the JS queue ready for output
     
    2020    global $wpdb, $bp;
    2121
    22     if ( !is_super_admin() )
     22    if ( !bp_current_user_can( 'bp_moderate' ) )
    2323        return false;
    2424
Note: See TracChangeset for help on using the changeset viewer.