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-includes/canonical.php

    r33775 r34213  
    327327                                $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
    328328                        } else {
    329                                 $redirect_url = site_url( 'wp-login.php?action=register' );
     329                                $redirect_url = wp_registration_url();
    330330                        }
    331331
     
    592592        );
    593593        if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) {
    594                 wp_redirect( site_url( 'wp-login.php', 'login' ) );
     594                wp_redirect( wp_login_url() );
    595595                exit;
    596596        }
Note: See TracChangeset for help on using the changeset viewer.