From 38b009d86c62a7377a52635dcf44692eec467d36 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 25 Feb 2010 22:06:10 +0000 Subject: [PATCH] Switch from POST_BY_EMAIL constant to enable post-by-email when multisite to a filter. See #12381. git-svn-id: https://develop.svn.wordpress.org/trunk@13418 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-mail.php b/wp-mail.php index 40550c0cbd..9d09d6826d 100644 --- a/wp-mail.php +++ b/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');