Make WordPress Core

Ticket #38460: 38460.2.diff

File 38460.2.diff, 1.6 KB (added by sabernhardt, 3 years ago)

updated with new functions

  • src/wp-admin/network/user-new.php

     
    124124        </div>
    125125<?php } ?>
    126126        <form action="<?php echo esc_url( network_admin_url( 'user-new.php?action=add-user' ) ); ?>" id="adduser" method="post" novalidate="novalidate">
     127        <p><?php echo wp_required_field_message(); ?></p>
    127128        <table class="form-table" role="presentation">
    128129                <tr class="form-field form-required">
    129                         <th scope="row"><label for="username"><?php _e( 'Username' ); ?></label></th>
    130                         <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
     130                        <th scope="row"><label for="username"><?php _e( 'Username' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
     131                        <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /></td>
    131132                </tr>
    132133                <tr class="form-field form-required">
    133                         <th scope="row"><label for="email"><?php _e( 'Email' ); ?></label></th>
    134                         <td><input type="email" class="regular-text" name="user[email]" id="email" /></td>
     134                        <th scope="row"><label for="email"><?php _e( 'Email' ); ?> <?php echo wp_required_field_indicator(); ?></label></th>
     135                        <td><input type="email" class="regular-text" name="user[email]" id="email" required="required" /></td>
    135136                </tr>
    136137                <tr class="form-field">
    137138                        <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>