Changeset 3284
- Timestamp:
- 10/07/2010 09:25:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-wpabstraction.php
r3232 r3284 65 65 function get_blogs_of_user() { 66 66 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;84 67 } 85 68 }
Note: See TracChangeset
for help on using the changeset viewer.