show_blog_form

The timeline below displays how wordpress function show_blog_form has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Generates and displays the Sign-up and Create Site forms.
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Site name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name (subdirectory only):') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain (subdomain only):') . '</label>';
    }
    $errmsg_blogname = $errors->get_error_message('blogname');
    $errmsg_blogname_aria = '';
    if ($errmsg_blogname) {
        $errmsg_blogname_aria = 'wp-signup-blogname-error ';
        echo '<p class="error" id="wp-signup-blogname-error">' . $errmsg_blogname . '</p>';
    }
    if (!is_subdomain_install()) {
        echo '<div class="wp-signup-blogname"><span class="prefix_address" id="prefix-address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="' . $errmsg_blogname_aria . 'prefix-address" /></div>';
    } else {
        $site_domain = preg_replace('|^www\.|', '', $current_network->domain);
        echo '<div class="wp-signup-blogname"><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="' . $errmsg_blogname_aria . 'suffix-address" /><span class="suffix_address" id="suffix-address">.' . esc_html($site_domain) . '</span></div>';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Site Title.
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg_blog_title = $errors->get_error_message('blog_title');
    $errmsg_blog_title_aria = '';
    if ($errmsg_blog_title) {
        $errmsg_blog_title_aria = ' aria-describedby="wp-signup-blog-title-error"';
        echo '<p class="error" id="wp-signup-blog-title-error">' . $errmsg_blog_title . '</p>';
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" required="required" autocomplete="off"' . $errmsg_blog_title_aria . ' />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages, true)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' === $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<fieldset class="privacy-intro">
			<legend>
				<span class="label-heading"><?php 
    _e('Privacy:');
    ?></span>
				<?php 
    _e('Allow search engines to index this site.');
    ?>
			</legend>
			<p class="wp-signup-radio-buttons">
				<span class="wp-signup-radio-button">
					<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
					<label class="checkbox" for="blog_public_on"><?php 
    _e('Yes');
    ?></label>
				</span>
				<span class="wp-signup-radio-button">
					<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
					<label class="checkbox" for="blog_public_off"><?php 
    _e('No');
    ?></label>
				</span>
			</p>
		</fieldset>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 6.1

/**
 * Generates and displays the Sign-up and Create Site forms.
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name (subdirectory only):') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain (subdomain only):') . '</label>';
    }
    $errmsg_blogname = $errors->get_error_message('blogname');
    $errmsg_blogname_aria = '';
    if ($errmsg_blogname) {
        $errmsg_blogname_aria = 'wp-signup-blogname-error ';
        echo '<p class="error" id="wp-signup-blogname-error">' . $errmsg_blogname . '</p>';
    }
    if (!is_subdomain_install()) {
        echo '<div class="wp-signup-blogname"><span class="prefix_address" id="prefix-address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="' . $errmsg_blogname_aria . 'prefix-address" /></div>';
    } else {
        $site_domain = preg_replace('|^www\.|', '', $current_network->domain);
        echo '<div class="wp-signup-blogname"><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" autocomplete="off" required="required" aria-describedby="' . $errmsg_blogname_aria . 'suffix-address" /><span class="suffix_address" id="suffix-address">.' . esc_html($site_domain) . '</span></div>';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Site Title.
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg_blog_title = $errors->get_error_message('blog_title');
    $errmsg_blog_title_aria = '';
    if ($errmsg_blog_title) {
        $errmsg_blog_title_aria = ' aria-describedby="wp-signup-blog-title-error"';
        echo '<p class="error" id="wp-signup-blog-title-error">' . $errmsg_blog_title . '</p>';
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" required="required" autocomplete="off"' . $errmsg_blog_title_aria . ' />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages, true)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' === $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<fieldset class="privacy-intro">
			<legend>
				<span class="label-heading"><?php 
    _e('Privacy:');
    ?></span>
				<?php 
    _e('Allow search engines to index this site.');
    ?>
			</legend>
			<p class="wp-signup-radio-buttons">
				<span class="wp-signup-radio-button">
					<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
					<label class="checkbox" for="blog_public_on"><?php 
    _e('Yes');
    ?></label>
				</span>
				<span class="wp-signup-radio-button">
					<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
					<label class="checkbox" for="blog_public_off"><?php 
    _e('No');
    ?></label>
				</span>
			</p>
		</fieldset>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 5.9

/**
 * Generates and displays the Sign-up and Create Site forms.
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    $errmsg = $errors->get_error_message('blogname');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    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 />';
    } 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 />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Site Title.
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg = $errors->get_error_message('blog_title');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages, true)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' === $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<p class="privacy-intro">
			<?php 
    _e('Privacy:');
    ?>
			<?php 
    _e('Allow search engines to index this site.');
    ?>
			<br style="clear:both" />
			<label class="checkbox" for="blog_public_on">
				<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
				<strong><?php 
    _e('Yes');
    ?></strong>
			</label>
			<label class="checkbox" for="blog_public_off">
				<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
				<strong><?php 
    _e('No');
    ?></strong>
			</label>
		</p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 5.5

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    $errmsg = $errors->get_error_message('blogname');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    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 />';
    } 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 />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Site Title.
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg = $errors->get_error_message('blog_title');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages, true)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' === $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<p class="privacy-intro">
			<?php 
    _e('Privacy:');
    ?>
			<?php 
    _e('Allow search engines to index this site.');
    ?>
			<br style="clear:both" />
			<label class="checkbox" for="blog_public_on">
				<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
				<strong><?php 
    _e('Yes');
    ?></strong>
			</label>
			<label class="checkbox" for="blog_public_off">
				<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
				<strong><?php 
    _e('No');
    ?></strong>
			</label>
		</p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 5.4

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    $errmsg = $errors->get_error_message('blogname');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    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 />';
    } 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 />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Site Title.
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg = $errors->get_error_message('blog_title');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' === $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<p class="privacy-intro">
			<?php 
    _e('Privacy:');
    ?>
			<?php 
    _e('Allow search engines to index this site.');
    ?>
			<br style="clear:both" />
			<label class="checkbox" for="blog_public_on">
				<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
				<strong><?php 
    _e('Yes');
    ?></strong>
			</label>
			<label class="checkbox" for="blog_public_off">
				<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
				<strong><?php 
    _e('No');
    ?></strong>
			</label>
		</p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 5.3

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    $errmsg = $errors->get_error_message('blogname');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    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 />';
    } 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 />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        printf(
            '<p>(<strong>%s</strong>) %s</p>',
            /* translators: %s: Site address. */
            sprintf(__('Your address will be %s.'), $site),
            __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!')
        );
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg = $errors->get_error_message('blog_title');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' == $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<p class="privacy-intro">
			<label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
			<?php 
    _e('Allow search engines to index this site.');
    ?>
			<br style="clear:both" />
			<label class="checkbox" for="blog_public_on">
				<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
				<strong><?php 
    _e('Yes');
    ?></strong>
			</label>
			<label class="checkbox" for="blog_public_off">
				<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
				<strong><?php 
    _e('No');
    ?></strong>
			</label>
		</p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 5.1

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name.
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    $errmsg = $errors->get_error_message('blogname');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    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 />';
    } 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 />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        /* translators: %s: site address */
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    $errmsg = $errors->get_error_message('blog_title');
    if ($errmsg) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
		<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
		<?php 
    }
    // Languages.
    $blog_public_on_checked = '';
    $blog_public_off_checked = '';
    if (isset($_POST['blog_public']) && '0' == $_POST['blog_public']) {
        $blog_public_off_checked = 'checked="checked"';
    } else {
        $blog_public_on_checked = 'checked="checked"';
    }
    ?>

	<div id="privacy">
		<p class="privacy-intro">
			<label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
			<?php 
    _e('Allow search engines to index this site.');
    ?>
			<br style="clear:both" />
			<label class="checkbox" for="blog_public_on">
				<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    echo $blog_public_on_checked;
    ?> />
				<strong><?php 
    _e('Yes');
    ?></strong>
			</label>
			<label class="checkbox" for="blog_public_off">
				<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    echo $blog_public_off_checked;
    ?> />
				<strong><?php 
    _e('No');
    ?></strong>
			</label>
		</p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 4.9

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU (3.0.0)
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    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 />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_network->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        /* translators: %s: site address */
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
	<?php 
    }
    // Languages. 
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 4.7

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_network = get_network();
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    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 />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_network->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_network->domain . $current_network->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_network->path;
        }
        /* translators: %s: site address */
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
	<?php 
    }
    // Languages. 
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 4.6

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU
 *
 * @param string          $blogname   The new site name.
 * @param string          $blog_title The new site title.
 * @param WP_Error|string $errors     A WP_Error object containing existing errors. Defaults to empty string.
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    if (!is_wp_error($errors)) {
        $errors = new WP_Error();
    }
    $current_site = get_current_site();
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    if (!is_subdomain_install()) {
        echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><br />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_site->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_site->domain . $current_site->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_site->path;
        }
        /* translators: %s: site address */
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
	<?php 
    }
    // Languages. 
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 4.4

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU
 *
 * @param string $blogname The new site name
 * @param string $blog_title The new site title
 * @param array $errors
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    $current_site = get_current_site();
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    if (!is_subdomain_install()) {
        echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><br />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_site->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_site->domain . $current_site->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_site->path;
        }
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<?php 
    // Site Language.
    $languages = signup_get_available_languages();
    if (!empty($languages)) {
        ?>
		<p>
			<label for="site-language"><?php 
        _e('Site Language:');
        ?></label>
			<?php 
        // Network default.
        $lang = get_site_option('WPLANG');
        if (isset($_POST['WPLANG'])) {
            $lang = $_POST['WPLANG'];
        }
        // Use US English if the default isn't available.
        if (!in_array($lang, $languages)) {
            $lang = '';
        }
        wp_dropdown_languages(array('name' => 'WPLANG', 'id' => 'site-language', 'selected' => $lang, 'languages' => $languages, 'show_available_translations' => false));
        ?>
		</p>
	<?php 
    }
    // Languages. 
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param array $errors An array possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 3.8

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU
 *
 * @param string $blogname The new site name
 * @param string $blog_title The new site title
 * @param array $errors
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    $current_site = get_current_site();
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    if (!is_subdomain_install()) {
        echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><br />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_site->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_site->domain . $current_site->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_site->path;
        }
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param array $errors An array possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}

WordPress Version: 3.7

/**
 * Generates and displays the Signup and Create Site forms
 *
 * @since MU
 *
 * @param string $blogname The new site name
 * @param string $blog_title The new site title
 * @param array $errors
 */
function show_blog_form($blogname = '', $blog_title = '', $errors = '')
{
    global $current_site;
    // Blog name
    if (!is_subdomain_install()) {
        echo '<label for="blogname">' . __('Site Name:') . '</label>';
    } else {
        echo '<label for="blogname">' . __('Site Domain:') . '</label>';
    }
    if ($errmsg = $errors->get_error_message('blogname')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    if (!is_subdomain_install()) {
        echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><br />';
    } else {
        echo '<input name="blogname" type="text" id="blogname" value="' . esc_attr($blogname) . '" maxlength="60" /><span class="suffix_address">.' . ($site_domain = preg_replace('|^www\.|', '', $current_site->domain)) . '</span><br />';
    }
    if (!is_user_logged_in()) {
        if (!is_subdomain_install()) {
            $site = $current_site->domain . $current_site->path . __('sitename');
        } else {
            $site = __('domain') . '.' . $site_domain . $current_site->path;
        }
        echo '<p>(<strong>' . sprintf(__('Your address will be %s.'), $site) . '</strong>) ' . __('Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!') . '</p>';
    }
    // Blog Title
    ?>
	<label for="blog_title"><?php 
    _e('Site Title:');
    ?></label>
	<?php 
    if ($errmsg = $errors->get_error_message('blog_title')) {
        ?>
		<p class="error"><?php 
        echo $errmsg;
        ?></p>
	<?php 
    }
    echo '<input name="blog_title" type="text" id="blog_title" value="' . esc_attr($blog_title) . '" />';
    ?>

	<div id="privacy">
        <p class="privacy-intro">
            <label for="blog_public_on"><?php 
    _e('Privacy:');
    ?></label>
            <?php 
    _e('Allow search engines to index this site.');
    ?>
            <br style="clear:both" />
            <label class="checkbox" for="blog_public_on">
                <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php 
    if (!isset($_POST['blog_public']) || $_POST['blog_public'] == '1') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('Yes');
    ?></strong>
            </label>
            <label class="checkbox" for="blog_public_off">
                <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php 
    if (isset($_POST['blog_public']) && $_POST['blog_public'] == '0') {
        ?>checked="checked"<?php 
    }
    ?> />
                <strong><?php 
    _e('No');
    ?></strong>
            </label>
        </p>
	</div>

	<?php 
    /**
     * Fires after the site sign-up form.
     *
     * @since 3.0.0
     *
     * @param array $errors An array possibly containing 'blogname' or 'blog_title' errors.
     */
    do_action('signup_blogform', $errors);
}