Skip to:
Content

BuddyPress.org

Changeset 3284


Ignore:
Timestamp:
10/07/2010 09:25:42 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2654 (trunk) props cnorris23

File:
1 edited

Legend:

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

    r3232 r3284  
    6565    function get_blogs_of_user() {
    6666        return false;
    67     }
    68 }
    69 
    70 if ( !function_exists( 'is_site_admin' ) ) {
    71     function is_site_admin( $user_id = false ) {
    72         if ( current_user_can( 'manage_options' ) )
    73             return true;
    74 
    75         return false;
    76     }
    77 }
    78 
    79 if ( !function_exists( 'get_current_user_id' ) ) {
    80     function get_current_user_id() {
    81         global $current_user;
    82         get_currentuserinfo();
    83         return $current_user->data->ID;
    8467    }
    8568}
Note: See TracChangeset for help on using the changeset viewer.