-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check
$user
type to avoid fatal error.
There are some rare cases where `rest_preload_api_request(Array, '/wp/v2/users/me...')` on a new user results in the `get_userdata()` calls in `\WordPressdotorg\Two_Factor\register_user_fields` returning `false`. It's not easy to reproduce, so handling it gracefully is good enough as a solution. See https://wordpress.slack.com/archives/G02QB4059/p1675309698126049 and the 3 that followed it.
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters