Skip to content

Commit

Permalink
Docs: Use sign-up & signup consistently in wp-signup.php.
Browse files Browse the repository at this point in the history
In the docblocks throughout `wp-signup.php` use sign up for verbs and sign-up for nouns.

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



git-svn-id: https://develop.svn.wordpress.org/trunk@51930 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
peterwilsoncc committed Oct 25, 2021
1 parent e6ba58c commit 2238c30
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/wp-signup.php
Expand Up @@ -43,14 +43,14 @@ function do_signup_header() {
$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
*/
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)
*/
Expand Down Expand Up @@ -79,7 +79,7 @@ function wpmu_signup_stylesheet() {
get_header( 'wp-signup' );

/**
* Fires before the site sign-up form.
* Fires before the site Sign-up form.
*
* @since 3.0.0
*/
Expand All @@ -89,7 +89,7 @@ function wpmu_signup_stylesheet() {
<div class="mu_register wp-signup-container" role="main">
<?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)
*
Expand Down Expand Up @@ -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)
*
Expand Down Expand Up @@ -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)
*
Expand Down Expand Up @@ -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)
*
Expand Down Expand Up @@ -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)
*
* @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() {
$result = validate_user_form();
Expand Down Expand Up @@ -747,7 +747,7 @@ function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t
do_action( 'signup_hidden_fields', 'validate-site' );
?>
<?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>
<?php
}
Expand All @@ -757,7 +757,7 @@ function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t
*
* @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() {
// Re-validate user info.
Expand Down Expand Up @@ -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
*
Expand All @@ -871,10 +871,10 @@ function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $use
*/
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
* 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.
*
Expand Down

0 comments on commit 2238c30

Please sign in to comment.