WordPress.org

Make WordPress Core

Changeset 4286


Ignore:
Timestamp:
10/04/06 03:03:41 (8 years ago)
Author:
ryan
Message:

Quote weblog title in email From header. Props graeme and Nazgul. fixes #1716

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/install.php

    r4284 r4286  
    182182$wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}capabilities', '{$admin_caps}');"); 
    183183 
    184 $message_headers = 'From: ' . $weblog_title . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>'; 
     184$message_headers = 'From: "' . $weblog_title . '" <wordpress@' . $_SERVER['SERVER_NAME'] . '>'; 
    185185$message = sprintf(__("Your new WordPress blog has been successfully set up at: 
    186186 
  • trunk/wp-admin/upgrade-functions.php

    r4282 r4286  
    105105    $email = $user->user_email; 
    106106    $name = $user->user_login; 
    107     $message_headers = 'From: ' . $blog_title . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>'; 
     107    $message_headers = 'From: "' . $blog_title . '" <wordpress@' . $_SERVER['SERVER_NAME'] . '>'; 
    108108    $message = sprintf(__("Your new WordPress blog has been successfully set up at: 
    109109 
Note: See TracChangeset for help on using the changeset viewer.