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:
Sergey Biryukov 2014-07-21 16:20:05 +00:00
parent 4ba18baec2
commit 98e7bb798c
1 changed files with 1 additions and 1 deletions

View File

@ -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 { ?>