WordPress.org

Make WordPress Core

Changeset 7998 for trunk/wp-login.php


Ignore:
Timestamp:
05/27/2008 05:46:01 PM (13 years ago)
Author:
ryan
Message:

First cut and better admin SSL support. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r7992 r7998  
    138138    $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    139139    $message .= __('To reset your password visit the following address, otherwise just ignore this email and nothing will happen.') . "\r\n\r\n";
    140     $message .= get_option('siteurl') . "/wp-login.php?action=rp&key=$key\r\n";
     140    $message .= site_url("wp-login.php?action=rp&key=$key") . "\r\n";
    141141
    142142    if ( !wp_mail($user_email, sprintf(__('[%s] Password Reset'), get_option('blogname')), $message) )
     
    175175    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    176176    $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
    177     $message .= get_option('siteurl') . "/wp-login.php\r\n";
     177    $message .= site_url('wp-login.php') . "\r\n";
    178178
    179179    if (  !wp_mail($user->user_email, sprintf(__('[%s] Your new password'), get_option('blogname')), $message) )
     
    406406        // If the user can't edit posts, send them to their profile.
    407407        if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' ) )
    408             $redirect_to = get_option('siteurl') . '/wp-admin/profile.php';
     408            $redirect_to = admin_url('profile.php');
    409409        wp_safe_redirect($redirect_to);
    410410        exit();
Note: See TracChangeset for help on using the changeset viewer.