"I applied this quick fix this afternoon and it worked:
$items = json_decode( wp_remote_retrieve_body( $request ), true );
if ( ! is_array( $items ) ) {
$items = [];
}
$items = array_filter( $items, function( $item ) {
if ( ! is_array( $item ) ) return false;
if ( ! $this->validLegacyType($item) ) return false;
if ( empty( $item[‘status’] ) ) return false;
if ( $item[‘status’] !== ‘publish’ ) return false;
return true;
} );
However, it’s no longer working. On the advice of @charlie, I’m starting a new topic for this.