From 0e41b5d52fdc6af6442816b5f465c9db9f84e126 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:51:18 +0200 Subject: Adding upstream version 6.6.1+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/capabilities.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'wp-includes/capabilities.php') diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 26b150f..1263208 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -1088,10 +1088,8 @@ function is_super_admin( $user_id = false ) { if ( is_array( $super_admins ) && in_array( $user->user_login, $super_admins, true ) ) { return true; } - } else { - if ( $user->has_cap( 'delete_users' ) ) { - return true; - } + } elseif ( $user->has_cap( 'delete_users' ) ) { + return true; } return false; -- cgit v1.2.3