Changeset 15608
- Timestamp:
- 09/10/2010 11:24:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r15596 r15608 1214 1214 */ 1215 1215 function is_super_admin( $user_id = false ) { 1216 if ( ! $user_id ) {1217 $ current_user = wp_get_current_user();1218 $user_id = ! empty($current_user) ? $current_user->id : 0;1219 }1220 1221 if ( ! $user_id)1216 if ( $user_id ) 1217 $user = new WP_User( $user_id ); 1218 else 1219 $user = wp_get_current_user(); 1220 1221 if ( empty( $user->id ) ) 1222 1222 return false; 1223 1224 $user = new WP_User($user_id);1225 1223 1226 1224 if ( is_multisite() ) {
Note: See TracChangeset
for help on using the changeset viewer.