Make WordPress Core


Ignore:
Timestamp:
09/15/2015 05:10:24 PM (11 years ago)
Author:
johnbillion
Message:

Implement wp_login_url() and wp_registration_url() in places where wp-login.php is currently hard-coded.

See #31495
Props GregLone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r34162 r34213  
    2929
    3030if ( !is_multisite() ) {
    31         wp_redirect( site_url('wp-login.php?action=register') );
     31        wp_redirect( wp_registration_url() );
    3232        die();
    3333}
     
    670670        _e( 'Registration has been disabled.' );
    671671} elseif ( $active_signup == 'blog' && !is_user_logged_in() ) {
    672         $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( network_site_url( 'wp-signup.php' ) ) );
     672        $login_url = wp_login_url( network_site_url( 'wp-signup.php' ) );
    673673        echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url );
    674674} else {
Note: See TracChangeset for help on using the changeset viewer.