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/general-template.php

    r18963 r19027  
    289289 * @param string $redirect Path to redirect to on login.
    290290 */
    291 function wp_lostpassword_url($redirect = '') {
     291function wp_lostpassword_url( $redirect = '' ) {
    292292    $args = array( 'action' => 'lostpassword' );
    293293    if ( !empty($redirect) ) {
     
    295295    }
    296296
    297     $lostpassword_url = add_query_arg($args, site_url('wp-login.php', 'login'));
    298     return apply_filters('lostpassword_url', $lostpassword_url, $redirect);
     297    $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') );
     298    return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
    299299}
    300300
Note: See TracChangeset for help on using the changeset viewer.