Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58860


Ignore:
Timestamp:
07/20/2023 09:51:03 AM (18 months ago)
Author:
mukesh27
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58860

    • Property Version changed from 6.2.2 to
    • Property Component changed from Security to Users
  • Ticket #58860 – Description

    initial v1  
     1{{{
    12function is_super_admin( $user_id = false ) {
    23
     
    89
    910        ...
     11}
     12}}}
    1013
    11 }
    1214
    13 If user is logged in as super admin and do
    14 
    15 is_super_admin(0);
    16 
    17 it will return true;
     15If user is logged in as super admin and do `is_super_admin(0);` it will return true;
    1816
    1917It would be best to use strict comparison:
    20 
     18{{{
    2119function is_super_admin( $user_id = false ) {
    2220
     
    2826
    2927        ...
    30 
    3128}
     29}}}