Skip to content

Commit 061e878

Browse files
committed
Mail: Disable wp-mail.php when mailserver_url is mail.example.com.
Built from https://develop.svn.wordpress.org/trunk@39772 git-svn-id: http://core.svn.wordpress.org/trunk@39710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 03e5c03 commit 061e878

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.8-alpha-39760';
7+
$wp_version = '4.8-alpha-39772';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

Diff for: wp-mail.php

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
1515
wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
1616

17+
$mailserver_url = get_option( 'mailserver_url' );
18+
19+
if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) {
20+
wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
21+
}
22+
1723
/**
1824
* Fires to allow a plugin to do a complete takeover of Post by Email.
1925
*

0 commit comments

Comments
 (0)