Commit 695d460
committed
Fix fatal error when Remote_Actors::get_actor() encounters WP_Error
When Actor::init_from_json() returns a WP_Error (e.g., due to corrupted
or invalid JSON data), the code logged the error but continued executing,
then tried calling get_webfinger() on the WP_Error object, causing a
fatal error.
Fixes #26751 parent 5c1accb commit 695d460
File tree
2 files changed
+5
-0
lines changed- .github/changelog
- includes/collection
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
| |||
0 commit comments