Skip to content

Commit

Permalink
Revalidation: Handle get_status() returning false - when 2FA isn't …
Browse files Browse the repository at this point in the history
…activated.
  • Loading branch information
dd32 authored Dec 17, 2024
1 parent 5e31338 commit be5a493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function register_user_fields(): void {
*/

$status = Revalidation\get_status();
if ( ! $status['last_validated'] ) {
if ( ! $status || ! $status['last_validated'] ) {
return false;
}

Expand Down

0 comments on commit be5a493

Please sign in to comment.