Make WordPress Core

Changeset 11450 for trunk/wp-login.php


Ignore:
Timestamp:
05/24/2009 11:47:49 PM (17 years ago)
Author:
ryan
Message:

Trim tailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11291 r11450  
    148148        $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    149149        $message .= site_url("wp-login.php?action=rp&key=$key", 'login') . "\r\n";
    150        
     150
    151151        $title = sprintf(__('[%s] Password Reset'), get_option('blogname'));
    152        
     152
    153153        $title = apply_filters('retrieve_password_title', $title);
    154154        $message = apply_filters('retrieve_password_message', $message, $key);
    155        
     155
    156156        if ( $message && !wp_mail($user_email, $title, $message) )
    157157                die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
     
    182182        // Generate something random for a password...
    183183        $new_pass = wp_generate_password();
    184        
     184
    185185        do_action('password_reset', $user, $new_pass);
    186186
     
    195195        $title = apply_filters('password_reset_title', $title);
    196196        $message = apply_filters('password_reset_message', $message, $new_pass);
    197  
     197
    198198        if ( $message && !wp_mail($user->user_email, $title, $message) )
    199199                die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
Note: See TracChangeset for help on using the changeset viewer.