mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Don't clear saved username in wp_attempt_focus. props JohnPBloch, wojtek.szkutnik. fixes #14031.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8f96817661
commit
c7ce2852c2
@ -671,11 +671,17 @@ function wp_attempt_focus(){
|
||||
setTimeout( function(){ try{
|
||||
<?php if ( $user_login || $interim_login ) { ?>
|
||||
d = document.getElementById('user_pass');
|
||||
d.value = '';
|
||||
<?php } else { ?>
|
||||
d = document.getElementById('user_login');
|
||||
<?php } ?>
|
||||
<?php if ( 'invalid_username' == $errors->get_error_code() ) { ?>
|
||||
if( d.value != '' )
|
||||
d.value = '';
|
||||
<?php
|
||||
}
|
||||
}?>
|
||||
d.focus();
|
||||
d.select();
|
||||
} catch(e){}
|
||||
}, 200);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user