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
This commit is contained in:
ryan 2010-01-07 01:29:40 +00:00
parent fd475d2b38
commit eea7c0ee49

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