Make WordPress Core

Ticket #17630: 17630.3.patch

File 17630.3.patch, 745 bytes (added by pbearne, 10 years ago)

removed extra space from action name and removed not needed filter

  • src/wp-signup.php

     
    3737        die();
    3838}
    3939
     40$signup_location_parts = explode( '?', network_site_url( 'wp-signup.php' ) );
     41
     42// Redirect to the true signup location if the URL differs from default.
     43if ( $signup_location_parts[0] !== $network_site_url ) {
     44        wp_redirect( $signup_location );
     45        exit;
     46}
     47
    4048// Fix for page title
    4149$wp_query->is_404 = false;
    4250
     
    6674}
    6775
    6876add_action( 'wp_head', 'wpmu_signup_stylesheet' );
     77/**
     78* Fires just before the site sign-up header.
     79*
     80* @since 4.4.0
     81*/
     82do_action( 'before_signup_header' );
    6983get_header( 'wp-signup' );
    7084
    7185/**