Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: wp-signup.php is a blank page


circuit
Participant

@circuit

i’m adding this to functions.php and it’s killing my bbpress integration (which calls wp-load.php in the header). i just get a white page.

/* Kill the wp-signup.php if custom registration signup templates are present */
function bp_core_wpsignup_redirect() {
if ( false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php') )
return false;

if ( locate_template( array( 'registration/register.php' ), false ) || locate_template( array( 'register.php' ), false ) )
wp_redirect( bp_root_domain() . BP_REGISTER_SLUG );
}
add_action( 'signup_header', 'bp_core_wpsignup_redirect' );

Skip to toolbar