Changeset 21377
- Timestamp:
- 07/31/2012 05:47:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r21375 r21377 1378 1378 */ 1379 1379 function is_super_admin( $user_id = false ) { 1380 if ( $user_id ) 1381 $user = new WP_User( $user_id ); 1382 else 1383 $user = wp_get_current_user(); 1384 1385 if ( ! $user->exists() ) 1380 if ( ! $user_id ) 1381 $user_id = get_current_user_id(); 1382 1383 if ( ! $user = get_userdata( $user_id ) ) 1386 1384 return false; 1387 1385
Note: See TracChangeset
for help on using the changeset viewer.