X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/256a3b381f63716209b3527d0a14442ae570c283..8d3bb1a5dcfdea9857d3c88c3751f09593e34dc8:/wp-signup.php diff --git a/wp-signup.php b/wp-signup.php index d4e4a754..99bd2afb 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -7,7 +7,7 @@ add_action( 'wp_head', 'wp_no_robots' ); 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 ) { +if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) ) { wp_redirect( network_home_url() ); die(); } @@ -19,7 +19,7 @@ if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && */ function do_signup_header() { /** - * Fires within the section of the site sign-up screen. + * Fires within the head section of the site sign-up screen. * * @since 3.0.0 */ @@ -28,7 +28,7 @@ function do_signup_header() { add_action( 'wp_head', 'do_signup_header' ); if ( !is_multisite() ) { - wp_redirect( site_url('wp-login.php?action=register') ); + wp_redirect( wp_registration_url() ); die(); } @@ -40,6 +40,13 @@ if ( !is_main_site() ) { // Fix for page title $wp_query->is_404 = false; +/** + * Fires before the Site Signup page is loaded. + * + * @since 4.4.0 + */ +do_action( 'before_signup_header' ); + /** * Prints styles for front-end Multisite signup pages * @@ -56,6 +63,7 @@ function wpmu_signup_stylesheet() { .mu_register #user_email, .mu_register #blogname, .mu_register #user_name { width:100%; font-size: 24px; margin:5px 0; } + .mu_register #site-language { display: block; } .mu_register .prefix_address, .mu_register .suffix_address {font-size: 18px;display:inline; } .mu_register label { font-weight:700; font-size:15px; display:block; margin:10px 0; } @@ -66,7 +74,7 @@ function wpmu_signup_stylesheet() { } add_action( 'wp_head', 'wpmu_signup_stylesheet' ); -get_header(); +get_header( 'wp-signup' ); /** * Fires before the site sign-up form. @@ -75,19 +83,23 @@ get_header(); */ do_action( 'before_signup_form' ); ?> -
-
+
+