WordPress.org

Make WordPress Core

Changeset 38332


Ignore:
Timestamp:
08/23/2016 02:01:16 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-mail.php

    r38045 r38332  
    1313/** This filter is documented in wp-admin/options.php */
    1414if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
    15     wp_die( __( 'This action has been disabled by the administrator.' ) );
     15    wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
    1616
    1717/**
Note: See TracChangeset for help on using the changeset viewer.