if ( isset( $add_user_errors ) &&
is_wp_error( $add_user_errors ) ) { ?>
<div id="message" class="notice notice-error is-dismissible">
<?php
foreach ( $add_user_errors->
get_error_messages() as $error ) { echo "<p>
$error</p>";
} ?>
</div>
<?php
} ?>
<form action="<?php
echo esc_url( network_admin_url( 'user-new.php?action=add-user'
) ); ?>" id="adduser" method="post" novalidate="novalidate">
<p><?php
echo wp_required_field_message(); ?></p>
<table class="form-table" role="presentation">
<tr class="form-field form-required">
<th scope="row"><label for="username"><?php
_e( 'Username'
); ?> <?php
echo wp_required_field_indicator(); ?></label></th>
<td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" required="required" /></td>
</tr>
<tr class="form-field form-required">
<th scope="row"><label for="email"><?php
_e( 'Email'
); ?> <?php
echo wp_required_field_indicator(); ?></label></th>
<td><input type="email" class="regular-text" name="user[email]" id="email" required="required" /></td>
</tr>
<tr class="form-field">
<td colspan="2" class="td-full"><?php
_e( 'A password reset link will be sent to the user via email.'
); ?></td>
</tr>
</table>