diff --git a/src/wp-signup.php b/src/wp-signup.php
index e13d6e49e7..375dad9517 100644
|
a
|
b
|
if ( ! is_main_site() ) { |
| 43 | 43 | $wp_query->is_404 = false; |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | | * Fires before the Site Signup page is loaded. |
| | 46 | * Fires before the Site Sign-up page is loaded. |
| 47 | 47 | * |
| 48 | 48 | * @since 4.4.0 |
| 49 | 49 | */ |
| 50 | 50 | do_action( 'before_signup_header' ); |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | | * Prints styles for front-end Multisite signup pages. |
| | 53 | * Prints styles for front-end Multisite Sign-up pages. |
| 54 | 54 | * |
| 55 | 55 | * @since MU (3.0.0) |
| 56 | 56 | */ |
| … |
… |
add_action( 'wp_head', 'wpmu_signup_stylesheet' ); |
| 79 | 79 | get_header( 'wp-signup' ); |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | | * Fires before the site sign-up form. |
| | 82 | * Fires before the site Sign-up form. |
| 83 | 83 | * |
| 84 | 84 | * @since 3.0.0 |
| 85 | 85 | */ |
| … |
… |
do_action( 'before_signup_form' ); |
| 89 | 89 | <div class="mu_register wp-signup-container" role="main"> |
| 90 | 90 | <?php |
| 91 | 91 | /** |
| 92 | | * Generates and displays the Signup and Create Site forms. |
| | 92 | * Generates and displays the Sign-up and Create Site forms. |
| 93 | 93 | * |
| 94 | 94 | * @since MU (3.0.0) |
| 95 | 95 | * |
| … |
… |
function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | | * Validates the new site signup. |
| | 227 | * Validates the new site sign-up. |
| 228 | 228 | * |
| 229 | 229 | * @since MU (3.0.0) |
| 230 | 230 | * |
| … |
… |
function show_user_form( $user_name = '', $user_email = '', $errors = '' ) { |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | /** |
| 291 | | * Validates user signup name and email. |
| | 291 | * Validates user sign-up name and email. |
| 292 | 292 | * |
| 293 | 293 | * @since MU (3.0.0) |
| 294 | 294 | * |
| … |
… |
function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | | * Validates a new site signup for an existing user. |
| | 397 | * Validates a new site sign-up for an existing user. |
| 398 | 398 | * |
| 399 | 399 | * @since MU (3.0.0) |
| 400 | 400 | * |
| … |
… |
function signup_user( $user_name = '', $user_email = '', $errors = '' ) { |
| 629 | 629 | } |
| 630 | 630 | |
| 631 | 631 | /** |
| 632 | | * Validates the new user signup. |
| | 632 | * Validates the new user sign-up. |
| 633 | 633 | * |
| 634 | 634 | * @since MU (3.0.0) |
| 635 | 635 | * |
| 636 | | * @return bool True if new user signup was validated, false on error. |
| | 636 | * @return bool True if new user sign-up was validated, false on error. |
| 637 | 637 | */ |
| 638 | 638 | function validate_user_signup() { |
| 639 | 639 | $result = validate_user_form(); |
| … |
… |
function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t |
| 747 | 747 | do_action( 'signup_hidden_fields', 'validate-site' ); |
| 748 | 748 | ?> |
| 749 | 749 | <?php show_blog_form( $blogname, $blog_title, $errors ); ?> |
| 750 | | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Signup' ); ?>" /></p> |
| | 750 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Sign up' ); ?>" /></p> |
| 751 | 751 | </form> |
| 752 | 752 | <?php |
| 753 | 753 | } |
| … |
… |
function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t |
| 757 | 757 | * |
| 758 | 758 | * @since MU (3.0.0) |
| 759 | 759 | * |
| 760 | | * @return bool True if the site signup was validated, false on error. |
| | 760 | * @return bool True if the site sign-up was validated, false on error. |
| 761 | 761 | */ |
| 762 | 762 | function validate_blog_signup() { |
| 763 | 763 | // Re-validate user info. |
| … |
… |
function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use |
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | /** |
| 863 | | * Retrieves languages available during the site/user signup process. |
| | 863 | * Retrieves languages available during the site/user sign-up process. |
| 864 | 864 | * |
| 865 | 865 | * @since 4.4.0 |
| 866 | 866 | * |
| … |
… |
function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use |
| 871 | 871 | */ |
| 872 | 872 | function signup_get_available_languages() { |
| 873 | 873 | /** |
| 874 | | * Filters the list of available languages for front-end site signups. |
| | 874 | * Filters the list of available languages for front-end site sign-ups. |
| 875 | 875 | * |
| 876 | 876 | * Passing an empty array to this hook will disable output of the setting on the |
| 877 | | * signup form, and the default language will be used when creating the site. |
| | 877 | * sign-up form, and the default language will be used when creating the site. |
| 878 | 878 | * |
| 879 | 879 | * Languages not already installed will be stripped. |
| 880 | 880 | * |