Make WordPress Core

Ticket #17630: 17630.2.diff

File 17630.2.diff, 807 bytes (added by jeremyfelt, 12 years ago)
  • src/wp-signup.php

     
    3232        die();
    3333}
    3434
     35$network_site_url = network_site_url( 'wp-signup.php' );
     36/**
     37 * Filter the signup location for this WordPress installation.
     38 *
     39 * @since 3.7.0
     40 *
     41 * @param string $network_site_url URL of the signup page for WordPress.
     42 */
     43$signup_location = apply_filters( 'wp_signup_location', $network_site_url );
     44$signup_location_parts = explode( '?', $signup_location );
     45
     46// Redirect to the true signup location if the URL differs from default.
     47if ( $signup_location_parts[0] !== $network_site_url ) {
     48        wp_redirect( $signup_location );
     49        die();
     50}
     51
    3552// Fix for page title
    3653$wp_query->is_404 = false;
    3754