Make WordPress Core


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

    r21217 r21813  
    1919 *
    2020 * Prevents redirection for feeds, trackbacks, searches, comment popup, and
    21  * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7, 
     21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7,
    2222 * page/post previews, WP admin, Trackbacks, robots.txt, searches, or on POST
    2323 * requests.
     
    283283        if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
    284284            if ( is_multisite() )
    285                 $redirect_url = apply_filters( 'wp_signup_location', site_url( 'wp-signup.php' ) );
     285                $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
    286286            else
    287287                $redirect_url = site_url( 'wp-login.php?action=register' );
Note: See TracChangeset for help on using the changeset viewer.