check for WP_Error

This commit is contained in:
Matthias Pfefferle 2024-10-07 10:03:40 +02:00
parent 2538a2f1b7
commit 9b0d5857c1

View file

@ -302,7 +302,7 @@ class Activity_Dispatcher {
$actor = object_to_uri( $object['attributedTo'] ); $actor = object_to_uri( $object['attributedTo'] );
$actor = Http::get_remote_object( $actor ); $actor = Http::get_remote_object( $actor );
if ( ! $actor ) { if ( ! $actor || \is_wp_error( $actor ) ) {
continue; continue;
} }