Ticket #53224: 53224.diff
File 53224.diff, 769 bytes (added by , 3 years ago) |
---|
-
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
707 707 return $error; 708 708 } 709 709 710 if ( is_multisite() && ! is_user_member_of_blog( $user->ID ) ) { 711 return $error; 712 } 710 if ( ! is_super_admin() ) { 711 if ( is_multisite() && !is_user_member_of_blog( $user->ID ) ) { 712 return $error; 713 } 714 } 713 715 714 716 if ( ! wp_is_application_passwords_available_for_user( $user ) ) { 715 717 return new WP_Error(