Passwords: fix the markup on the Reset Password Form for `user-pass1` so the JavaScript operates properly.

Props ldinclaux.
See #33892.
Fixes #33908.

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


git-svn-id: http://core.svn.wordpress.org/trunk@34335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-22 03:57:24 +00:00
parent 3ad78c4ec5
commit 39552b63ca
4 changed files with 19 additions and 12 deletions

View File

@ -190,11 +190,16 @@
}
} );
$passwordWrapper = $pass1Row.find('.wp-pwd').hide();
$passwordWrapper = $pass1Row.find( '.wp-pwd' );
$generateButton = $pass1Row.find( 'button.wp-generate-pw' );
bindToggleButton();
$generateButton = $pass1Row.find( 'button.wp-generate-pw' ).show();
if ( $generateButton.length ) {
$passwordWrapper.hide();
}
$generateButton.show();
$generateButton.on( 'click', function () {
updateLock = true;

File diff suppressed because one or more lines are too long

View File

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

View File

@ -652,7 +652,8 @@ case 'rp' :
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
<p class="user-pass1-wrap">
<div class="user-pass1-wrap">
<p>
<label for="pass1"><?php _e( 'New password' ) ?></label>
</p>
@ -662,6 +663,7 @@ case 'rp' :
</span>
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
</div>
</div>
<p class="user-pass2-wrap">
<label for="pass2"><?php _e( 'Confirm new password' ) ?></label><br />