Profile: on user-new.php
, don't allow the password fields to be hidden. When hidden, you can't add a user.
Props coffee2code. Fixes #15115. git-svn-id: https://develop.svn.wordpress.org/trunk@34582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bdce0b8174
commit
1543fbf91b
@ -394,15 +394,6 @@ $new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unsl
|
||||
<th scope="row"><label for="url"><?php _e('Website') ?></label></th>
|
||||
<td><input name="url" type="url" id="url" class="code" value="<?php echo esc_attr( $new_user_uri ); ?>" /></td>
|
||||
</tr>
|
||||
<?php
|
||||
/**
|
||||
* Filter the display of the password fields.
|
||||
*
|
||||
* @since 1.5.1
|
||||
*
|
||||
* @param bool $show Whether to show the password fields. Default true.
|
||||
*/
|
||||
if ( apply_filters( 'show_password_fields', true ) ) : ?>
|
||||
<tr class="form-field form-required user-pass1-wrap">
|
||||
<th scope="row">
|
||||
<label for="pass1">
|
||||
@ -445,7 +436,6 @@ if ( apply_filters( 'show_password_fields', true ) ) : ?>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php } // !is_multisite ?>
|
||||
<tr class="form-field">
|
||||
<th scope="row"><label for="role"><?php _e('Role'); ?></label></th>
|
||||
|
Loading…
Reference in New Issue
Block a user