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.

Built from https://develop.svn.wordpress.org/trunk@34582


git-svn-id: http://core.svn.wordpress.org/trunk@34546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-26 06:15:26 +00:00
parent 8646c8b93c
commit 0d8a80b14c
2 changed files with 1 additions and 11 deletions

View File

@ -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>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34581';
$wp_version = '4.4-alpha-34582';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.