WordPress.org

Make WordPress Core

Ticket #11752: 11752.diff

File 11752.diff, 451 bytes (added by Denis-de-Bernardy, 4 years ago)
  • wp-includes/ms-functions.php

     
    23982398} 
    23992399 
    24002400function maybe_cancel_post_by_email() { 
    2401         if ( false == defined( 'POST_BY_EMAIL' ) ) { 
     2401        if ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL ) { 
    24022402                die( __( 'This action has been disabled by the administrator' ) ); 
    24032403        } 
    24042404}