From 40e73cd79db058226d0777046abcd64f69995f3f Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@12623 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 0bf4b9a7b5..bb034068a1 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' ) ); } }