mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
fd475d2b38
commit
eea7c0ee49
@ -2401,7 +2401,7 @@ function filter_SSL( $url) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function maybe_cancel_post_by_email() {
|
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' ) );
|
die( __( 'This action has been disabled by the administrator' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user