X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/58f607a1de715c9bca69340a4d6fb9e1b9c2bed2..7f1521bf193b382565eb753043c161f4cb3fcda7:/wp-signup.php diff --git a/wp-signup.php b/wp-signup.php index 28b561a9..a519bcc0 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -3,38 +3,48 @@ /** Sets up the WordPress Environment. */ require( dirname(__FILE__) . '/wp-load.php' ); -add_action( 'wp_head', 'signuppageheaders' ) ; +add_action( 'wp_head', 'wp_no_robots' ); -require( './wp-blog-header.php' ); -require_once( ABSPATH . WPINC . '/registration.php' ); +require( dirname( __FILE__ ) . '/wp-blog-header.php' ); if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) { wp_redirect( network_home_url() ); die(); } +/** + * Prints signup_header via wp_head + * + * @since MU + */ function do_signup_header() { - do_action("signup_header"); + /** + * Fires within the head section of the site sign-up screen. + * + * @since 3.0.0 + */ + do_action( 'signup_header' ); } add_action( 'wp_head', 'do_signup_header' ); -function signuppageheaders() { - echo "\n"; -} - if ( !is_multisite() ) { - wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" ); + wp_redirect( site_url('wp-login.php?action=register') ); die(); } if ( !is_main_site() ) { - wp_redirect( network_home_url( 'wp-signup.php' ) ); + wp_redirect( network_site_url( 'wp-signup.php' ) ); die(); } // Fix for page title $wp_query->is_404 = false; +/** + * Prints styles for front-end Multisite signup pages + * + * @since MU + */ function wpmu_signup_stylesheet() { ?>