Changeset 12855
- Timestamp:
- 01/26/2010 08:53:59 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r12854 r12855 2034 2034 } 2035 2035 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 2042 2036 ?> -
trunk/wp-mail.php
r11949 r12855 10 10 /** Make sure that the WordPress bootstrap has run before continuing. */ 11 11 require(dirname(__FILE__) . '/wp-load.php'); 12 13 if ( is_multisite() && ( !defined( 'POST_BY_EMAIL' ) || !POST_BY_EMAIL ) ) 14 die( __( 'This action has been disabled by the administrator' ) ); 12 15 13 16 /** Allow a plugin to do a complete takeover of Post by Email **/
Note: See TracChangeset
for help on using the changeset viewer.