Make WordPress Core

Changeset 21813 for trunk/wp-signup.php


Ignore:
Timestamp:
09/11/2012 12:27:25 PM (12 years ago)
Author:
nacin
Message:

Use network_site_url() for wp-signup.php. props markjaquith. see #19796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r21664 r21813  
    2424
    2525if ( !is_main_site() ) {
    26     wp_redirect( network_home_url( 'wp-signup.php' ) );
     26    wp_redirect( network_site_url( 'wp-signup.php' ) );
    2727    die();
    2828}
     
    391391    _e( 'Registration has been disabled.' );
    392392} elseif ( $active_signup == 'blog' && !is_user_logged_in() ) {
    393     $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . '/wp-signup.php' ) ) );
     393    $login_url = site_url( 'wp-login.php?redirect_to=' . urlencode( network_site_url( 'wp-signup.php' ) ) );
    394394    echo sprintf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url );
    395395} else {
Note: See TracChangeset for help on using the changeset viewer.