diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php index af920d21f5..b0ac65a647 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php @@ -719,7 +719,7 @@ class WP_REST_Application_Passwords_Controller extends WP_REST_Controller { return $error; } - if ( is_multisite() && ! is_user_member_of_blog( $user->ID ) ) { + if ( is_multisite() && ! user_can( $user->ID, 'manage_sites' ) && ! is_user_member_of_blog( $user->ID ) ) { return $error; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3059a1a751..e55896f474 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53881'; +$wp_version = '6.1-alpha-53882'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.