Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch from POST_BY_EMAIL constant to enable post-by-email when multi…

…site to a filter. See #12381.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 3e4ce6e9a3991b5c1c9b597f69e3327dbdf08b7f 1 parent a3ae373
westi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 wp-mail.php
View
4 wp-mail.php
@@ -10,8 +10,8 @@
/** Make sure that the WordPress bootstrap has run before continuing. */
require(dirname(__FILE__) . '/wp-load.php');
-if ( is_multisite() && ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL ) )
- die( __( 'This action has been disabled by the administrator' ) );
+if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
+ wp_die( __( 'This action has been disabled by the administrator' ) );
/** Allow a plugin to do a complete takeover of Post by Email **/
do_action('wp-mail.php');
Please sign in to comment.
Something went wrong with that request. Please try again.