Don't always focus password field on interim login.
props johnbillion. fixes #28961. git-svn-id: https://develop.svn.wordpress.org/trunk@29258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4ba18baec2
commit
98e7bb798c
|
@ -896,7 +896,7 @@ default:
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function wp_attempt_focus(){
|
function wp_attempt_focus(){
|
||||||
setTimeout( function(){ try{
|
setTimeout( function(){ try{
|
||||||
<?php if ( $user_login || $interim_login ) { ?>
|
<?php if ( $user_login ) { ?>
|
||||||
d = document.getElementById('user_pass');
|
d = document.getElementById('user_pass');
|
||||||
d.value = '';
|
d.value = '';
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
Loading…
Reference in New Issue