WordPress.org

Make WordPress Core

Ticket #14031: 14031.diff

File 14031.diff, 616 bytes (added by wojtek.szkutnik, 8 years ago)
  • wp-login.php

     
    629629setTimeout( function(){ try{
    630630<?php if ( $user_login || $interim_login ) { ?>
    631631d = document.getElementById('user_pass');
     632d.value = '';
    632633<?php } else { ?>
    633634d = document.getElementById('user_login');
    634 <?php } ?>
     635<?php if ( !( 'invalid_username' == $errors->get_error_code() ) ) { ?>
     636if( d.value != '' )
     637        d = document.getElementById('wp-submit');
     638<?php } else { ?>
    635639d.value = '';
     640<?php
     641}
     642}?>
    636643d.focus();
    637644} catch(e){}
    638645}, 200);