Login: Avoid AJAX error on login screen.

This has to do with the password generator, which does not need to generate and cache passwords in JS as that's already done in PHP.

Props adamsilverstein, sarahricker.
Fixes #51613.

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


git-svn-id: http://core.svn.wordpress.org/trunk@49098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2020-10-27 18:43:07 +00:00
parent 769b29f962
commit 85e954aa37
3 changed files with 2 additions and 9 deletions

View File

@ -146,13 +146,6 @@
bindToggleButton();
// Generate the first password and cache it, but don't set it yet.
wp.ajax.post( 'generate-password' )
.done( function( data ) {
// Cache password.
$pass1.data( 'pw', data );
} );
$generateButton.show();
$generateButton.on( 'click', function () {
updateLock = true;

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-beta1-49336';
$wp_version = '5.6-beta1-49337';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.