Skip to content

Commit c913fc4

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38332 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 74b9127 commit c913fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/** This filter is documented in wp-admin/options.php */
1414
if ( ! 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
/**
1818
* Fires to allow a plugin to do a complete takeover of Post by Email.

0 commit comments

Comments
 (0)