Do not propagate empty passwords from the hidden form field.

fixes #32886
Built from https://develop.svn.wordpress.org/trunk@33384


git-svn-id: http://core.svn.wordpress.org/trunk@33353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2015-07-23 05:00:25 +00:00
parent 8d72575b00
commit 9682eb0108
3 changed files with 6 additions and 4 deletions

View File

@ -109,8 +109,10 @@
* pass2 field to the pass1 field.
*/
pw_field2.on( 'input propertychange', function() {
pw_field.val( pw_field2.val() );
pw_field.trigger( 'propertychange' );
if ( pw_field2.val().length > 0 ) {
pw_field.val( pw_field2.val() );
pw_field.trigger( 'propertychange' );
}
} );
pw_new.on( 'click', 'button.wp-generate-pw', function(){

File diff suppressed because one or more lines are too long

View File

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