Changeset 8454
- Timestamp:
- 07/25/2008 06:32:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-login.php
r8411 r8454 450 450 451 451 login_header(__('Login'), '', $errors); 452 453 if ( isset($_POST['log']) ) 454 $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? attribute_escape(stripslashes($_POST['log'])) : ''; 452 455 ?> 453 456 … … 456 459 <p> 457 460 <label><?php _e('Username') ?><br /> 458 <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>461 <input type="text" name="log" id="user_login" class="input" value="<?php echo $user_login; ?>" size="20" tabindex="10" /></label> 459 462 </p> 460 463 <p> … … 489 492 490 493 <script type="text/javascript"> 494 <?php if ( $user_login ) { ?> 495 setTimeout( function(){ try{ 496 d = document.getElementById('user_pass'); 497 d.value = ''; 498 d.focus(); 499 } catch(e){} 500 }, 200); 501 <?php } else { ?> 491 502 try{document.getElementById('user_login').focus();}catch(e){} 503 <?php } ?> 492 504 </script> 493 505 </body>
Note: See TracChangeset
for help on using the changeset viewer.