[wp-trac] [WordPress Trac] #37572: When wp-mail.php is disabled, it returns 500 instead of a more appropriate 403 response

WordPress Trac noreply at wordpress.org
Tue Aug 23 14:01:18 UTC 2016


#37572: When wp-mail.php is disabled, it returns 500 instead of a more appropriate
403 response
-------------------------+-----------------------------
 Reporter:  tomdxw       |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.7
Component:  Mail         |     Version:  4.5.3
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38332"]:
 {{{
 #!CommitTicketReference repository="" revision="38332"
 WP Mail: If post-by-email functionality is disabled, `wp-mail.php` should
 return a `403 Forbidden` status code instead if `500 Internal Server
 Error`.

 Props Presskopp, tomdxw.
 Fixes #37572.
 }}}

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


More information about the wp-trac mailing list