WordPress.org

Make WordPress Core

Ticket #14586: 14586.diff

File 14586.diff, 1013 bytes (added by ryan, 8 years ago)
  • wp-includes/ms-default-filters.php

     
    4747add_filter( 'upload_size_limit', 'upload_size_limit_filter' );
    4848
    4949// Mail
    50 add_filter( 'wp_mail_from', 'wordpressmu_wp_mail_from' );
    5150add_action( 'phpmailer_init', 'fix_phpmailer_messageid' );
    5251
    5352// Disable somethings by default for multisite
  • wp-includes/ms-functions.php

     
    12451245        return $upload;
    12461246}
    12471247
    1248 function wordpressmu_wp_mail_from( $email ) {
    1249         if ( strpos( $email, 'wordpress@' ) !== false )
    1250                 $email = get_option( 'admin_email' );
    1251         return $email;
    1252 }
    1253 
    12541248function signup_nonce_fields() {
    12551249        $id = mt_rand();
    12561250        echo "<input type='hidden' name='signup_form_id' value='{$id}' />";