Make WordPress Core

Changeset 16008 for trunk/wp-login.php


Ignore:
Timestamp:
10/27/2010 10:43:43 AM (14 years ago)
Author:
dd32
Message:

Use Absolute URL's & API's in header redirects in more locations. See #14062

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r16000 r16008  
    431431
    432432    if ( is_wp_error($user) ) {
    433         wp_redirect('wp-login.php?action=lostpassword&error=invalidkey');
     433        wp_redirect( site_url('wp-login.php?action=lostpassword&error=invalidkey') );
    434434        exit;
    435435    }
     
    485485    if ( is_multisite() ) {
    486486        // Multisite uses wp-signup.php
    487         wp_redirect( apply_filters( 'wp_signup_location', get_bloginfo('wpurl') . '/wp-signup.php' ) );
     487        wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );
    488488        exit;
    489489    }
    490490
    491491    if ( !get_option('users_can_register') ) {
    492         wp_redirect('wp-login.php?registration=disabled');
     492        wp_redirect( site_url('wp-login.php?registration=disabled') );
    493493        exit();
    494494    }
Note: See TracChangeset for help on using the changeset viewer.