Changeset 2300
- Timestamp:
- 01/15/2010 11:06:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-signup.php
r2274 r2300 245 245 /* Kill the wp-signup.php if custom registration signup templates are present */ 246 246 function bp_core_wpsignup_redirect() { 247 if ( false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php') )247 if ( false === strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php') && $_GET['action'] != 'register' ) 248 248 return false; 249 249 250 250 if ( locate_template( array( 'registration/register.php' ), false ) || locate_template( array( 'register.php' ), false ) ) 251 wp_redirect( bp_root_domain() . BP_REGISTER_SLUG ); 252 } 253 add_action( 'signup_header', 'bp_core_wpsignup_redirect' ); 251 wp_redirect( bp_get_root_domain() . '/' . BP_REGISTER_SLUG ); 252 } 253 if ( bp_core_is_multisite() ) 254 add_action( 'wp', 'bp_core_wpsignup_redirect' ); 255 else 256 add_action( 'init', 'bp_core_wpsignup_redirect' ); 257 254 258 ?>
Note: See TracChangeset
for help on using the changeset viewer.