WordPress.org

Make WordPress Core

Changeset 12855


Ignore:
Timestamp:
01/26/2010 08:53:59 PM (10 years ago)
Author:
ryan
Message:

Integrate maybe_cancel_post_by_email() into wp-mail.php. see #11644

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r12854 r12855  
    20342034}
    20352035
    2036 function maybe_cancel_post_by_email() {
    2037     if ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL )
    2038         die( __( 'This action has been disabled by the administrator' ) );
    2039 }
    2040 add_action( 'wp-mail.php', 'maybe_cancel_post_by_email' );
    2041 
    20422036?>
  • trunk/wp-mail.php

    r11949 r12855  
    1010/** Make sure that the WordPress bootstrap has run before continuing. */
    1111require(dirname(__FILE__) . '/wp-load.php');
     12
     13if ( is_multisite() && ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL ) )
     14    die( __( 'This action has been disabled by the administrator' ) );
    1215
    1316/** Allow a plugin to do a complete takeover of Post by Email **/
Note: See TracChangeset for help on using the changeset viewer.