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. git-svn-id: https://develop.svn.wordpress.org/trunk@49337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
18f172556d
commit
f293ae18b2
@ -146,13 +146,6 @@
|
|||||||
|
|
||||||
bindToggleButton();
|
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.show();
|
||||||
$generateButton.on( 'click', function () {
|
$generateButton.on( 'click', function () {
|
||||||
updateLock = true;
|
updateLock = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user