Skip to content

Commit 1543fbf

Browse files
committed
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
1 parent bdce0b8 commit 1543fbf

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/wp-admin/user-new.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,6 @@
394394
<th scope="row"><label for="url"><?php _e('Website') ?></label></th>
395395
<td><input name="url" type="url" id="url" class="code" value="<?php echo esc_attr( $new_user_uri ); ?>" /></td>
396396
</tr>
397-
<?php
398-
/**
399-
* Filter the display of the password fields.
400-
*
401-
* @since 1.5.1
402-
*
403-
* @param bool $show Whether to show the password fields. Default true.
404-
*/
405-
if ( apply_filters( 'show_password_fields', true ) ) : ?>
406397
<tr class="form-field form-required user-pass1-wrap">
407398
<th scope="row">
408399
<label for="pass1">
@@ -445,7 +436,6 @@
445436
</label>
446437
</td>
447438
</tr>
448-
<?php endif; ?>
449439
<?php } // !is_multisite ?>
450440
<tr class="form-field">
451441
<th scope="row"><label for="role"><?php _e('Role'); ?></label></th>

0 commit comments

Comments
 (0)