Changes between Initial Version and Version 1 of Ticket #58860
- Timestamp:
- 07/20/2023 09:51:03 AM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58860
-
Property
Version
changed from
6.2.2
to -
Property
Component
changed from
Security
toUsers
-
Property
Version
changed from
-
Ticket #58860 – Description
initial v1 1 {{{ 1 2 function is_super_admin( $user_id = false ) { 2 3 … … 8 9 9 10 ... 11 } 12 }}} 10 13 11 }12 14 13 If user is logged in as super admin and do 14 15 is_super_admin(0); 16 17 it will return true; 15 If user is logged in as super admin and do `is_super_admin(0);` it will return true; 18 16 19 17 It would be best to use strict comparison: 20 18 {{{ 21 19 function is_super_admin( $user_id = false ) { 22 20 … … 28 26 29 27 ... 30 31 28 } 29 }}}