[wp-trac] [WordPress Trac] #35598: Use different error code for PHPMailer exceptions in wp_mail_failed

WordPress Trac noreply at wordpress.org
Wed Nov 2 09:52:32 UTC 2016


#35598: Use different error code for PHPMailer exceptions in wp_mail_failed
-------------------------------------------------+-------------------------
 Reporter:  Kau-Boy                              |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  closed
Component:  Mail                                 |   Milestone:  4.7
 Severity:  normal                               |     Version:  4.4.1
 Keywords:  has-patch has-unit-tests needs-      |  Resolution:  fixed
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by Kau-Boy):

 Thanks for merging it in. The only thing that I couldn't figure out was
 how to test if the action `wp_mail_failed` was called AND the exception
 was thrown. But I think it's safe to asume, that the action was only
 called if the exception was thrown with the current code. So I think the
 unit test should be fine.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35598#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list