Ticket #17630: patch.diff

File patch.diff, 545 bytes (added by dwieeb, 2 years ago)
  • C:/Users/Daniel/Desktop/

    old new  
    3131        die(); 
    3232} 
    3333 
     34// If the signup location is different than this file and this file is accessed directly, redirect to the signup location 
     35$signup_location = apply_filters( 'wp_signup_location', site_url( 'wp-signup.php' ) ); 
     36if ( $signup_location != site_url( 'wp-signup.php' ) ) { 
     37        wp_redirect( $signup_location ); 
     38        die(); 
     39} 
     40 
    3441// Fix for page title 
    3542$wp_query->is_404 = false; 
    3643