WordPress.org

Make WordPress Core

Changeset 16870


Ignore:
Timestamp:
12/11/10 04:59:49 (3 years ago)
Author:
nacin
Message:

Don't clear saved username in wp_attempt_focus. props JohnPBloch, wojtek.szkutnik. fixes #14031.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r16285 r16870  
    672672<?php if ( $user_login || $interim_login ) { ?> 
    673673d = document.getElementById('user_pass'); 
     674d.value = ''; 
    674675<?php } else { ?> 
    675676d = document.getElementById('user_login'); 
    676 <?php } ?> 
     677<?php if ( 'invalid_username' == $errors->get_error_code() ) { ?> 
     678if( d.value != '' ) 
    677679d.value = ''; 
     680<?php  
     681} 
     682}?> 
    678683d.focus(); 
     684d.select(); 
    679685} catch(e){} 
    680686}, 200); 
Note: See TracChangeset for help on using the changeset viewer.