1515}
1616
1717/**
18- * Prints signup_header via wp_head
18+ * Prints signup_header via wp_head.
1919 *
2020 * @since MU (3.0.0)
2121 */
@@ -50,7 +50,7 @@ function do_signup_header() {
5050do_action ( 'before_signup_header ' );
5151
5252/**
53- * Prints styles for front-end Multisite signup pages
53+ * Prints styles for front-end Multisite signup pages.
5454 *
5555 * @since MU (3.0.0)
5656 */
@@ -89,7 +89,7 @@ function wpmu_signup_stylesheet() {
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 Signup and Create Site forms.
9393 *
9494 * @since MU (3.0.0)
9595 *
@@ -224,7 +224,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
224224}
225225
226226/**
227- * Validate the new site signup
227+ * Validates the new site signup.
228228 *
229229 * @since MU (3.0.0)
230230 *
@@ -288,7 +288,7 @@ function show_user_form( $user_name = '', $user_email = '', $errors = '' ) {
288288}
289289
290290/**
291- * Validate user signup name and email
291+ * Validates user signup name and email.
292292 *
293293 * @since MU (3.0.0)
294294 *
@@ -300,7 +300,7 @@ function validate_user_form() {
300300}
301301
302302/**
303- * Allow returning users to sign up for another site
303+ * Shows a form for returning users to sign up for another site.
304304 *
305305 * @since MU (3.0.0)
306306 *
@@ -394,17 +394,17 @@ function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {
394394}
395395
396396/**
397- * Validate a new site signup for an existing user.
398- *
399- * @global string $blogname The new site's subdomain or directory name.
400- * @global string $blog_title The new site's title.
401- * @global WP_Error $errors Existing errors in the global scope.
402- * @global string $domain The new site's domain.
403- * @global string $path The new site's path.
397+ * Validates a new site signup for an existing user.
404398 *
405399 * @since MU (3.0.0)
406400 *
407- * @return null|bool True if site signup was validated, false if error.
401+ * @global string $blogname The new site's subdomain or directory name.
402+ * @global string $blog_title The new site's title.
403+ * @global WP_Error $errors Existing errors in the global scope.
404+ * @global string $domain The new site's domain.
405+ * @global string $path The new site's path.
406+ *
407+ * @return null|bool True if site signup was validated, false on error.
408408 * The function halts all execution if the user is not logged in.
409409 */
410410function validate_another_blog_signup () {
@@ -486,7 +486,7 @@ function validate_another_blog_signup() {
486486}
487487
488488/**
489- * Confirm a new site signup .
489+ * Shows a message confirming that the new site has been created .
490490 *
491491 * @since MU (3.0.0)
492492 * @since 4.4.0 Added the `$blog_id` parameter.
@@ -553,6 +553,9 @@ function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $
553553 *
554554 * @since MU (3.0.0)
555555 *
556+ * @global string $active_signup String that returns registration type. The value can be
557+ * 'all', 'none', 'blog', or 'user'.
558+ *
556559 * @param string $user_name The username.
557560 * @param string $user_email The user's email.
558561 * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string.
@@ -626,11 +629,11 @@ function signup_user( $user_name = '', $user_email = '', $errors = '' ) {
626629}
627630
628631/**
629- * Validate the new user signup
632+ * Validates the new user signup.
630633 *
631634 * @since MU (3.0.0)
632635 *
633- * @return bool True if new user signup was validated, false if error
636+ * @return bool True if new user signup was validated, false on error.
634637 */
635638function validate_user_signup () {
636639 $ result = validate_user_form ();
@@ -656,12 +659,12 @@ function validate_user_signup() {
656659}
657660
658661/**
659- * New user signup confirmation
662+ * Shows a message confirming that the new user has been registered and is awaiting activation.
660663 *
661664 * @since MU (3.0.0)
662665 *
663- * @param string $user_name The username
664- * @param string $user_email The user's email address
666+ * @param string $user_name The username.
667+ * @param string $user_email The user's email address.
665668 */
666669function confirm_user_signup ( $ user_name , $ user_email ) {
667670 ?>
@@ -750,11 +753,11 @@ function signup_blog( $user_name = '', $user_email = '', $blogname = '', $blog_t
750753}
751754
752755/**
753- * Validate new site signup
756+ * Validates new site signup.
754757 *
755758 * @since MU (3.0.0)
756759 *
757- * @return bool True if the site signup was validated, false if error
760+ * @return bool True if the site signup was validated, false on error.
758761 */
759762function validate_blog_signup () {
760763 // Re-validate user info.
0 commit comments