Make WordPress Core

Changeset 58099


Ignore:
Timestamp:
05/05/2024 02:33:09 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove extra conditional in is_super_admin().

Follow-up to [12612].

Props dhruvang21, ankit-k-gupta, audrasjb.
Fixes #61098.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r56177 r58099  
    10891089            return true;
    10901090        }
    1091     } else {
    1092         if ( $user->has_cap( 'delete_users' ) ) {
    1093             return true;
    1094         }
     1091    } elseif ( $user->has_cap( 'delete_users' ) ) {
     1092        return true;
    10951093    }
    10961094
Note: See TracChangeset for help on using the changeset viewer.