~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-mail.php

  • Committer: Jamon Camisso
  • Date: 2017-01-12 15:30:45 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: jamon.camisso@canonical.com-20170112153045-dekfwsu8mcsdxa7x
New upstream release 4.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
15
15
        wp_die( __( 'This action has been disabled by the administrator.' ), 403 );
16
16
 
 
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
 
17
23
/**
18
24
 * Fires to allow a plugin to do a complete takeover of Post by Email.
19
25
 *