diff -r be944660c56a -r 3d72ae0968f4 wp/wp-includes/capabilities.php --- a/wp/wp-includes/capabilities.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-includes/capabilities.php Tue Sep 27 16:37:53 2022 +0200 @@ -820,7 +820,7 @@ } /** - * Retrieve role object. + * Retrieves role object. * * @since 2.0.0 * @@ -832,7 +832,7 @@ } /** - * Add role, if it does not exist. + * Adds a role, if it does not exist. * * @since 2.0.0 * @@ -850,7 +850,7 @@ } /** - * Remove role, if it exists. + * Removes a role, if it exists. * * @since 2.0.0 * @@ -861,7 +861,7 @@ } /** - * Retrieve a list of super admins. + * Retrieves a list of super admins. * * @since 3.0.0 * @@ -880,7 +880,7 @@ } /** - * Determine if user is a site admin. + * Determines whether user is a site admin. * * @since 3.0.0 * @@ -888,7 +888,7 @@ * @return bool Whether the user is a site admin. */ function is_super_admin( $user_id = false ) { - if ( ! $user_id || get_current_user_id() == $user_id ) { + if ( ! $user_id ) { $user = wp_get_current_user(); } else { $user = get_userdata( $user_id );