Make WordPress Core


Ignore:
Timestamp:
10/20/2011 02:40:11 PM (13 years ago)
Author:
nacin
Message:

Use wp_lostpassword_url() instead of site_url(wp-login...). Update wp_lostpassword_url() to use network_site_url(). props markoheijnen, fixes #18808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r19016 r19027  
    8989
    9090    if ( !$userdata )
    91         return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
     91        return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), wp_lostpassword_url()));
    9292
    9393    if ( is_multisite() ) {
     
    110110    if ( !wp_check_password($password, $userdata->user_pass, $userdata->ID) )
    111111        return new WP_Error( 'incorrect_password', sprintf( __( '<strong>ERROR</strong>: The password you entered for the username <strong>%1$s</strong> is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?' ),
    112         $username, site_url( 'wp-login.php?action=lostpassword', 'login' ) ) );
     112        $username, wp_lostpassword_url() ) );
    113113
    114114    $user =  new WP_User($userdata->ID);
Note: See TracChangeset for help on using the changeset viewer.