[wp-trac] [WordPress Trac] #35598: Use different error code for PHPMailer exceptions in wp_mail_failed
WordPress Trac
noreply at wordpress.org
Sun Jun 12 15:13:30 UTC 2016
#35598: Use different error code for PHPMailer exceptions in wp_mail_failed
--------------------------------------+-----------------------------
Reporter: Kau-Boy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Mail | Version: 4.4.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Comment (by Kau-Boy):
Changing the `empty` check in the `WP_Error` might have many side effects,
I would guess. As usually the first parameter used for `WP_Error` is a
static string, I found this the optimal solution (I couldn't find a single
usage in core not using a static string).
The PhpMailer only uses numeric error codes of 0, 1 and 2 which doesn't
really add too much useful information.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35598#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list