Make WordPress Core

Ticket #37331: 37331.diff

File 37331.diff, 3.5 KB (added by dipesh.kakadiya, 9 years ago)
  • src/wp-admin/network/site-new.php

     
    191191        foreach ( $messages as $msg )
    192192                echo '<div id="message" class="updated notice is-dismissible"><p>' . $msg . '</p></div>';
    193193} ?>
    194 <form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
     194<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>">
    195195<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
    196196        <table class="form-table">
    197197                <tr class="form-field form-required">
    198                         <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ) ?></label></th>
     198                        <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ) ?><span class="required"><?php  _e( '*' ) ?></span></label></th>
    199199                        <td>
    200200                        <?php if ( is_subdomain_install() ) { ?>
    201                                 <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span>
     201                                <input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc" autocapitalize="none" autocorrect="off" aria-required="true" required="required" /><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', get_network()->domain ); ?></span>
    202202                        <?php } else {
    203                                 echo get_network()->domain . get_network()->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc"  autocapitalize="none" autocorrect="off" />
     203                                echo get_network()->domain . get_network()->path ?><input name="blog[domain]" type="text" class="regular-text" id="site-address" aria-describedby="site-address-desc"  autocapitalize="none" autocorrect="off" aria-required="true" required="required"/>
    204204                        <?php }
    205205                        echo '<p class="description" id="site-address-desc">' . __( 'Only lowercase letters (a-z), numbers, and hyphens are allowed.' ) . '</p>';
    206206                        ?>
     
    208208                </tr>
    209209                <tr class="form-field form-required">
    210210                        <th scope="row"><label for="site-title"><?php _e( 'Site Title' ) ?></label></th>
    211                         <td><input name="blog[title]" type="text" class="regular-text" id="site-title" /></td>
     211                        <td><input name="blog[title]" type="text" class="regular-text" id="site-title"/></td>
    212212                </tr>
    213213                <?php
    214214                $languages    = get_available_languages();
     
    240240                        </tr>
    241241                <?php endif; // Languages. ?>
    242242                <tr class="form-field form-required">
    243                         <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ) ?></label></th>
    244                         <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" /></td>
     243                        <th scope="row"><label for="admin-email"><?php _e( 'Admin Email' ) ?><span class="required"><?php  _e( '*' ) ?></span></label></th>
     244                        <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" aria-required="true" required="required" /></td>
    245245                </tr>
    246246                <tr class="form-field">
    247247                        <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>