WordPress.org

Make WordPress Core

Ticket #38460: 38460-1.diff

File 38460-1.diff, 1.7 KB (added by jackreichert, 4 years ago)

Per discussion on #37331, patch updated.

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

    diff --git src/wp-admin/network/user-new.php src/wp-admin/network/user-new.php
    index 52941e2..4c03222 100644
    if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) { ?> 
    104104        </div>
    105105<?php } ?>
    106106        <form action="<?php echo network_admin_url('user-new.php?action=add-user'); ?>" id="adduser" method="post" novalidate="novalidate">
    107         <table class="form-table">
     107                <?php echo sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' ); ?>
     108                <table class="form-table">
    108109                <tr class="form-field form-required">
    109                         <th scope="row"><label for="username"><?php _e( 'Username' ) ?></label></th>
    110                         <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
     110                        <th scope="row"><label for="username"><?php _e( 'Username' ) ?> <span class="required">*</span></label></th>
     111                        <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" aria-required="true" required="required" /></td>
    111112                </tr>
    112113                <tr class="form-field form-required">
    113                         <th scope="row"><label for="email"><?php _e( 'Email' ) ?></label></th>
    114                         <td><input type="email" class="regular-text" name="user[email]" id="email"/></td>
     114                        <th scope="row"><label for="email"><?php _e( 'Email' ) ?> <span class="required">*</span></label></th>
     115                        <td><input type="email" class="regular-text" name="user[email]" id="email" aria-required="true" required="required" /></td>
    115116                </tr>
    116117                <tr class="form-field">
    117118                        <td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ) ?></td>