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
This commit is contained in:
Ryan Boren 2010-01-07 01:29:40 +00:00
parent cf5aae053b
commit 40e73cd79d
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) );
}
}