• Hi,

    I posted here about 9 months ago regarding issues with the error handling in your code. That topic is now closed to new replies so I will start another one.

    Your team finally got around to dealing with the issues but there is still at least one error.

    Line 1387 is not correct use of the wp_mail_failed hook.

    do_action('wp_mail_failed', $responseSending);

    I have replaced it with:
    do_action( 'wp_mail_failed', new WP_Error( 'wp_mail_failed', $error_message, $mail_data ) );

    Maybe someone could check this and get back to me?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter confusedneedhelp

    (@confusedneedhelp)

    You are also calling this 3 times in the same function. I cannot see a reason for it.

    Lines 1343, 1365, 1391

    $responseBody = wp_remote_retrieve_body($responseSending)

    If there is a reason for this then I apologise.

Viewing 1 replies (of 1 total)

The topic ‘More Errors in you Code’ is closed to new replies.