Passwords: Only disable hidden password fields if they are really hidden.

Makes the password field on install and for password resets editable again. Both fields were accidentally set to disabled in [35603].

Props adamsilverstein, flixos90.
Fixes #33699.
Built from https://develop.svn.wordpress.org/trunk@35649


git-svn-id: http://core.svn.wordpress.org/trunk@35613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-11-16 20:49:26 +00:00
parent c29fe96196
commit 9df7c4edea
3 changed files with 8 additions and 6 deletions

View File

@ -195,10 +195,12 @@
} }
} ); } );
// Disable the hidden inputs to prevent autofill and submission. // Disable hidden inputs to prevent autofill and submission.
$pass1.prop( 'disabled', true ); if ( $pass1.is( ':hidden' ) ) {
$pass2.prop( 'disabled', true ); $pass1.prop( 'disabled', true );
$pass1Text.prop( 'disabled', true ); $pass2.prop( 'disabled', true );
$pass1Text.prop( 'disabled', true );
}
$passwordWrapper = $pass1Row.find( '.wp-pwd' ); $passwordWrapper = $pass1Row.find( '.wp-pwd' );
$generateButton = $pass1Row.find( 'button.wp-generate-pw' ); $generateButton = $pass1Row.find( 'button.wp-generate-pw' );

File diff suppressed because one or more lines are too long

View File

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