Make WordPress Core

Ticket #17630: 17630.1.diff

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

     
    3232        die();
    3333}
    3434
     35$signup_location = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
     36$signup_location_parts = explode( '?', $signup_location );
     37if ( $signup_location_parts[0] !== network_site_url( 'wp-signup.php' ) ) {
     38        wp_redirect( $signup_location );
     39        die();
     40}
     41
    3542// Fix for page title
    3643$wp_query->is_404 = false;
    3744