diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index b7392e16..9707c912 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -28,4 +28,4 @@ jobs: - name: Install dependencies run: composer install --prefer-dist --no-progress - name: Detect coding standard violations - run: ./vendor/bin/phpcs -n -q + run: ./vendor/bin/phpcs diff --git a/includes/class-activity-dispatcher.php b/includes/class-activity-dispatcher.php index 484af40e..a458f9fb 100644 --- a/includes/class-activity-dispatcher.php +++ b/includes/class-activity-dispatcher.php @@ -302,7 +302,7 @@ class Activity_Dispatcher { $actor = object_to_uri( $object['attributedTo'] ); $actor = Http::get_remote_object( $actor ); - if ( ! $actor ) { + if ( ! $actor || \is_wp_error( $actor ) ) { continue; }