WordPress.org

Make WordPress Core

Changeset 39784


Ignore:
Timestamp:
01/11/2017 05:20:28 AM (17 months ago)
Author:
jeremyfelt
Message:

Mail: Disable wp-mail.php when mailserver_url is mail.example.com.

Merges [39772] to the 3.7 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7/src/wp-mail.php

    r25868 r39784  
    1414if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
    1515    wp_die( __( 'This action has been disabled by the administrator.' ) );
     16
     17$mailserver_url = get_option( 'mailserver_url' );
     18
     19if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) {
     20    wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
     21}
    1622
    1723/** Allow a plugin to do a complete takeover of Post by Email **/
Note: See TracChangeset for help on using the changeset viewer.