From eea7c0ee49a5f5d4b569ae7d165bb0d3079c2726 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 7 Jan 2010 01:29:40 +0000 Subject: [PATCH] Better POST_BY_EMAIL logic. Props Denis-de-Bernardy. fixes #11752 git-svn-id: http://svn.automattic.com/wordpress/trunk@12623 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 0bf4b9a7b..bb034068a 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -2401,7 +2401,7 @@ function filter_SSL( $url) { } function maybe_cancel_post_by_email() { - if ( false == defined( 'POST_BY_EMAIL' ) ) { + if ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL ) { die( __( 'This action has been disabled by the administrator' ) ); } }