Docs: Use sign-up & signup consistently in `wp-signup.php`.

In the docblocks throughout `wp-signup.php` use sign up for verbs and sign-up for nouns.

Props audrasjb, jeffpaul.
Fixes #54041. See #53399.


Built from https://develop.svn.wordpress.org/trunk@51930


git-svn-id: http://core.svn.wordpress.org/trunk@51523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson 2021-10-25 00:23:57 +00:00
parent f8f74e7aa5
commit cdf1000cbb
2 changed files with 15 additions and 15 deletions

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-51929'; $wp_version = '5.9-alpha-51930';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -43,14 +43,14 @@ if ( ! is_main_site() ) {
$wp_query->is_404 = false; $wp_query->is_404 = false;
/** /**
* Fires before the Site Signup page is loaded. * Fires before the Site Sign-up page is loaded.
* *
* @since 4.4.0 * @since 4.4.0
*/ */
do_action( 'before_signup_header' ); do_action( 'before_signup_header' );
/** /**
* Prints styles for front-end Multisite signup pages. * Prints styles for front-end Multisite Sign-up pages.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
*/ */
@ -79,7 +79,7 @@ add_action( 'wp_head', 'wpmu_signup_stylesheet' );
get_header( 'wp-signup' ); get_header( 'wp-signup' );
/** /**
* Fires before the site sign-up form. * Fires before the site Sign-up form.
* *
* @since 3.0.0 * @since 3.0.0
*/ */
@ -89,7 +89,7 @@ do_action( 'before_signup_form' );
<div class="mu_register wp-signup-container" role="main"> <div class="mu_register wp-signup-container" role="main">
<?php <?php
/** /**
* Generates and displays the Signup and Create Site forms. * Generates and displays the Sign-up and Create Site forms.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -224,7 +224,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
} }
/** /**
* Validates the new site signup. * Validates the new site sign-up.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -288,7 +288,7 @@ function show_user_form( $user_name = '', $user_email = '', $errors = '' ) {
} }
/** /**
* Validates user signup name and email. * Validates user sign-up name and email.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -394,7 +394,7 @@ function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
} }
/** /**
* Validates a new site signup for an existing user. * Validates a new site sign-up for an existing user.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
@ -629,11 +629,11 @@ function signup_user( $user_name = '', $user_email = '', $errors = '' ) {
} }
/** /**
* Validates the new user signup. * Validates the new user sign-up.
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @return bool True if new user signup was validated, false on error. * @return bool True if new user sign-up was validated, false on error.
*/ */
function validate_user_signup() { function validate_user_signup() {
$result = validate_user_form(); $result = validate_user_form();
@ -747,7 +747,7 @@ function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t
do_action( 'signup_hidden_fields', 'validate-site' ); do_action( 'signup_hidden_fields', 'validate-site' );
?> ?>
<?php show_blog_form( $blogname, $blog_title, $errors ); ?> <?php show_blog_form( $blogname, $blog_title, $errors ); ?>
<p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Signup' ); ?>" /></p> <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Sign up' ); ?>" /></p>
</form> </form>
<?php <?php
} }
@ -757,7 +757,7 @@ function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @return bool True if the site signup was validated, false on error. * @return bool True if the site sign-up was validated, false on error.
*/ */
function validate_blog_signup() { function validate_blog_signup() {
// Re-validate user info. // Re-validate user info.
@ -860,7 +860,7 @@ function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use
} }
/** /**
* Retrieves languages available during the site/user signup process. * Retrieves languages available during the site/user sign-up process.
* *
* @since 4.4.0 * @since 4.4.0
* *
@ -871,10 +871,10 @@ function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use
*/ */
function signup_get_available_languages() { function signup_get_available_languages() {
/** /**
* Filters the list of available languages for front-end site signups. * Filters the list of available languages for front-end site sign-ups.
* *
* Passing an empty array to this hook will disable output of the setting on the * Passing an empty array to this hook will disable output of the setting on the
* signup form, and the default language will be used when creating the site. * sign-up form, and the default language will be used when creating the site.
* *
* Languages not already installed will be stripped. * Languages not already installed will be stripped.
* *