summaryrefslogtreecommitdiffstats
path: root/wp-includes/capabilities.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:22 +0000
commitfc0a79914946dac00ccd51b1aacffe267de7210e (patch)
tree1403384efbfe8f8776ff60aaa40f7d535c02c822 /wp-includes/capabilities.php
parentReleasing progress-linux version 6.5.5+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.tar.xz
wordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.zip
Merging upstream version 6.6.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/capabilities.php')
-rw-r--r--wp-includes/capabilities.php6
1 files changed, 2 insertions, 4 deletions
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;