WordPress.org

Make WordPress Core

Ticket #54041: 54041.diff

File 54041.diff, 3.8 KB (added by audrasjb, 3 months ago)
  • src/wp-signup.php

    diff --git a/src/wp-signup.php b/src/wp-signup.php
    index e13d6e49e7..375dad9517 100644
    a b if ( ! is_main_site() ) { 
    4343$wp_query->is_404 = false;
    4444
    4545/**
    46  * Fires before the Site Signup page is loaded.
     46 * Fires before the Site Sign-up page is loaded.
    4747 *
    4848 * @since 4.4.0
    4949 */
    5050do_action( 'before_signup_header' );
    5151
    5252/**
    53  * Prints styles for front-end Multisite signup pages.
     53 * Prints styles for front-end Multisite Sign-up pages.
    5454 *
    5555 * @since MU (3.0.0)
    5656 */
    add_action( 'wp_head', 'wpmu_signup_stylesheet' ); 
    7979get_header( 'wp-signup' );
    8080
    8181/**
    82  * Fires before the site sign-up form.
     82 * Fires before the site Sign-up form.
    8383 *
    8484 * @since 3.0.0
    8585 */
    do_action( 'before_signup_form' ); 
    8989<div class="mu_register wp-signup-container" role="main">
    9090<?php
    9191/**
    92  * Generates and displays the Signup and Create Site forms.
     92 * Generates and displays the Sign-up and Create Site forms.
    9393 *
    9494 * @since MU (3.0.0)
    9595 *
    function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) { 
    224224}
    225225
    226226/**
    227  * Validates the new site signup.
     227 * Validates the new site sign-up.
    228228 *
    229229 * @since MU (3.0.0)
    230230 *
    function show_user_form( $user_name = '', $user_email = '', $errors = '' ) { 
    288288}
    289289
    290290/**
    291  * Validates user signup name and email.
     291 * Validates user sign-up name and email.
    292292 *
    293293 * @since MU (3.0.0)
    294294 *
    function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { 
    394394}
    395395
    396396/**
    397  * Validates a new site signup for an existing user.
     397 * Validates a new site sign-up for an existing user.
    398398 *
    399399 * @since MU (3.0.0)
    400400 *
    function signup_user( $user_name = '', $user_email = '', $errors = '' ) { 
    629629}
    630630
    631631/**
    632  * Validates the new user signup.
     632 * Validates the new user sign-up.
    633633 *
    634634 * @since MU (3.0.0)
    635635 *
    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.
    637637 */
    638638function validate_user_signup() {
    639639        $result     = validate_user_form();
    function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t 
    747747                do_action( 'signup_hidden_fields', 'validate-site' );
    748748                ?>
    749749                <?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>
    751751        </form>
    752752        <?php
    753753}
    function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t 
    757757 *
    758758 * @since MU (3.0.0)
    759759 *
    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.
    761761 */
    762762function validate_blog_signup() {
    763763        // Re-validate user info.
    function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use 
    860860}
    861861
    862862/**
    863  * Retrieves languages available during the site/user signup process.
     863 * Retrieves languages available during the site/user sign-up process.
    864864 *
    865865 * @since 4.4.0
    866866 *
    function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use 
    871871 */
    872872function signup_get_available_languages() {
    873873        /**
    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.
    875875         *
    876876         * 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.
    878878         *
    879879         * Languages not already installed will be stripped.
    880880         *