--- a/wp/wp-signup.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-signup.php Tue Sep 27 16:37:53 2022 +0200
@@ -15,7 +15,7 @@
}
/**
- * Prints signup_header via wp_head
+ * Prints signup_header via wp_head.
*
* @since MU (3.0.0)
*/
@@ -43,14 +43,14 @@
$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)
*/
@@ -79,7 +79,7 @@
get_header( 'wp-signup' );
/**
- * Fires before the site sign-up form.
+ * Fires before the site Sign-up form.
*
* @since 3.0.0
*/
@@ -89,7 +89,7 @@
<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)
*
@@ -118,10 +118,10 @@
}
if ( ! is_subdomain_install() ) {
- echo '<span class="prefix_address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" /><br />';
+ echo '<span class="prefix_address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" /><br />';
} else {
$site_domain = preg_replace( '|^www\.|', '', $current_network->domain );
- echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" /><span class="suffix_address">.' . esc_html( $site_domain ) . '</span><br />';
+ echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr( $blogname ) . '" maxlength="60" autocomplete="off" /><span class="suffix_address">.' . esc_html( $site_domain ) . '</span><br />';
}
if ( ! is_user_logged_in() ) {
@@ -149,7 +149,7 @@
<p class="error"><?php echo $errmsg; ?></p>
<?php
}
- echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" />';
+ echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr( $blog_title ) . '" autocomplete="off" />';
?>
<?php
@@ -224,7 +224,7 @@
}
/**
- * Validate the new site signup
+ * Validates the new site sign-up.
*
* @since MU (3.0.0)
*
@@ -260,7 +260,7 @@
if ( $errmsg ) {
echo '<p class="error">' . $errmsg . '</p>';
}
- echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr( $user_name ) . '" autocapitalize="none" autocorrect="off" maxlength="60" /><br />';
+ echo '<input name="user_name" type="text" id="user_name" value="' . esc_attr( $user_name ) . '" autocapitalize="none" autocorrect="off" maxlength="60" autocomplete="username" /><br />';
_e( '(Must be at least 4 characters, letters and numbers only.)' );
?>
@@ -271,7 +271,7 @@
?>
<p class="error"><?php echo $errmsg; ?></p>
<?php } ?>
- <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr( $user_email ); ?>" maxlength="200" /><br /><?php _e( 'We send your registration email to this address. (Double-check your email address before continuing.)' ); ?>
+ <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr( $user_email ); ?>" maxlength="200" autocomplete="email" /><br /><?php _e( 'Your registration email is sent to this address. (Double-check your email address before continuing.)' ); ?>
<?php
$errmsg = $errors->get_error_message( 'generic' );
if ( $errmsg ) {
@@ -288,7 +288,7 @@
}
/**
- * Validate user signup name and email
+ * Validates user sign-up name and email.
*
* @since MU (3.0.0)
*
@@ -300,7 +300,7 @@
}
/**
- * Allow returning users to sign up for another site
+ * Shows a form for returning users to sign up for another site.
*
* @since MU (3.0.0)
*
@@ -373,7 +373,7 @@
</ul>
<?php } ?>
- <p><?php _e( 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' ); ?></p>
+ <p><?php _e( 'If you are not going to use a great site domain, leave it for a new user. Now have at it!' ); ?></p>
<form id="setupform" method="post" action="wp-signup.php">
<input type="hidden" name="stage" value="gimmeanotherblog" />
<?php
@@ -394,17 +394,17 @@
}
/**
- * Validate a new site signup for an existing user.
- *
- * @global string $blogname The new site's subdomain or directory name.
- * @global string $blog_title The new site's title.
- * @global WP_Error $errors Existing errors in the global scope.
- * @global string $domain The new site's domain.
- * @global string $path The new site's path.
+ * Validates a new site sign-up for an existing user.
*
* @since MU (3.0.0)
*
- * @return null|bool True if site signup was validated, false if error.
+ * @global string $blogname The new site's subdomain or directory name.
+ * @global string $blog_title The new site's title.
+ * @global WP_Error $errors Existing errors in the global scope.
+ * @global string $domain The new site's domain.
+ * @global string $path The new site's path.
+ *
+ * @return null|bool True if site signup was validated, false on error.
* The function halts all execution if the user is not logged in.
*/
function validate_another_blog_signup() {
@@ -486,7 +486,7 @@
}
/**
- * Confirm a new site signup.
+ * Shows a message confirming that the new site has been created.
*
* @since MU (3.0.0)
* @since 4.4.0 Added the `$blog_id` parameter.
@@ -553,6 +553,9 @@
*
* @since MU (3.0.0)
*
+ * @global string $active_signup String that returns registration type. The value can be
+ * 'all', 'none', 'blog', or 'user'.
+ *
* @param string $user_name The username.
* @param string $user_email The user's email.
* @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
@@ -626,11 +629,11 @@
}
/**
- * Validate 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 if error
+ * @return bool True if new user sign-up was validated, false on error.
*/
function validate_user_signup() {
$result = validate_user_form();
@@ -656,12 +659,12 @@
}
/**
- * New user signup confirmation
+ * Shows a message confirming that the new user has been registered and is awaiting activation.
*
* @since MU (3.0.0)
*
- * @param string $user_name The username
- * @param string $user_email The user's email address
+ * @param string $user_name The username.
+ * @param string $user_email The user's email address.
*/
function confirm_user_signup( $user_name, $user_email ) {
?>
@@ -744,17 +747,17 @@
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
}
/**
- * Validate new site signup
+ * Validates new site signup.
*
* @since MU (3.0.0)
*
- * @return bool True if the site signup was validated, false if error
+ * @return bool True if the site sign-up was validated, false on error.
*/
function validate_blog_signup() {
// Re-validate user info.
@@ -839,7 +842,7 @@
<p><?php _e( 'If you do not activate your site within two days, you will have to sign up again.' ); ?></p>
<h2><?php _e( 'Still waiting for your email?' ); ?></h2>
<p>
- <?php _e( 'If you haven’t received your email yet, there are a number of things you can do:' ); ?>
+ <?php _e( 'If you have not received your email yet, there are a number of things you can do:' ); ?>
<ul id="noemail-tips">
<li><p><strong><?php _e( 'Wait a little longer. Sometimes delivery of email can be delayed by processes outside of our control.' ); ?></strong></p></li>
<li><p><?php _e( 'Check the junk or spam folder of your email client. Sometime emails wind up there by mistake.' ); ?></p></li>
@@ -857,7 +860,7 @@
}
/**
- * Retrieves languages available during the site/user signup process.
+ * Retrieves languages available during the site/user sign-up process.
*
* @since 4.4.0
*
@@ -868,10 +871,10 @@
*/
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.
*