Changeset 4578
- Timestamp:
- 12/15/2012 11:59:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/users/capabilities.php
r4450 r4578 370 370 // Bail if no user ID 371 371 if ( empty( $user_id ) ) 372 return ;372 return false; 373 373 374 374 // Bail if user ID is super admin 375 375 if ( is_super_admin( $user_id ) ) 376 return ;376 return false; 377 377 378 378 // Arm the torpedos … … 422 422 restore_current_blog(); 423 423 } 424 425 // Success 426 return true; 424 427 } 425 428 … … 455 458 // Bail if no user ID 456 459 if ( empty( $user_id ) ) 457 return ;460 return false; 458 461 459 462 // Bail if user ID is super admin 460 463 if ( is_super_admin( $user_id ) ) 461 return ;464 return false; 462 465 463 466 // Arm the torpedos … … 507 510 restore_current_blog(); 508 511 } 512 513 // Success 514 return true; 509 515 } 510 516
Note: See TracChangeset
for help on using the changeset viewer.