Malin 2e1169727e fix: check is_wp_error before array-indexing subscriber lookup response
subscribe_email_to_list() read $existing['data']['id'] before checking
is_wp_error($existing), so any failed phpList lookup (e.g. a broken TLS
connection to the endpoint) fataled with "Cannot use object of type
WP_Error as array" instead of falling through to create-subscriber.
Reproduced live on easycut.es: cancelling an order threw this from
on_order_cancelled(), causing the admin's ISE 500 (the order status
change itself had already committed by then).
2026-08-24 09:36:05 +02:00
S
Description
No description provided
93 KiB
Languages
PHP 90.4%
JavaScript 6.3%
CSS 3.3%