Ticket #13045: 13045.2.diff
File 13045.2.diff, 5.9 KB (added by , 15 years ago) |
---|
-
wp-login.php
62 62 <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title> 63 63 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 64 64 <?php 65 wp_admin_css( 'login', true ); 66 wp_admin_css( 'colors-fresh', true ); 65 wp_admin_css( 'login', true ); <!-- change --> 67 66 68 67 if ( $is_iphone ) { ?> 69 68 <meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" /> … … 110 109 } 111 110 } 112 111 if ( !empty($errors) ) 113 echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n";112 echo '<div class="login_error"><p>' . apply_filters('login_errors', $errors) . "</p></div>\n"; /* change */ 114 113 if ( !empty($messages) ) 115 echo '< p class="message">' . apply_filters('login_messages', $messages) . "</p>\n";114 echo '<div class="message"><p>' . apply_filters('login_messages', $messages) . "</p></div>\n"; /* change */ 116 115 } 117 116 } // End of login_header() 118 117 function wp_shake_js() { … … 376 375 $redirect_to = apply_filters( 'lostpassword_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' ); 377 376 378 377 do_action('lost_password'); 379 login_header(__('Lost Password'), '< p class="message">' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '</p>', $errors);378 login_header(__('Lost Password'), '<div class="message"><p>' . __('Please enter your username or e-mail address. You will receive a new password via e-mail.') . '<p></div>', $errors); /* change */ 380 379 381 380 $user_login = isset($_POST['user_login']) ? stripslashes($_POST['user_login']) : ''; 382 381 … … 392 391 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Get New Password'); ?>" tabindex="100" /></p> 393 392 </form> 394 393 395 < p id="nav">394 <div id="nav"><p> <!-- change --> 396 395 <?php if (get_option('users_can_register')) : ?> 397 396 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> | 398 397 <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> 399 398 <?php else : ?> 400 399 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> 401 400 <?php endif; ?> 402 </p> 401 </p></div> <!-- change --> 403 402 404 403 </div> 405 404 406 < p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>405 <div id="backtoblog"><p><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p></div> <!-- change --> 407 406 408 407 <script type="text/javascript"> 409 408 try{document.getElementById('user_login').focus();}catch(e){} … … 456 455 } 457 456 458 457 $redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' ); 459 login_header(__('Registration Form'), '< p class="message register">' . __('Register For This Site') . '</p>', $errors);458 login_header(__('Registration Form'), '<div class="message register">' . __('Register For This Site') . '</div>', $errors); 460 459 ?> 461 460 462 461 <form name="registerform" id="registerform" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" method="post"> … … 475 474 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Register'); ?>" tabindex="100" /></p> 476 475 </form> 477 476 478 < p id="nav">477 <div id="nav"><p> <!-- change --> 479 478 <a href="<?php echo site_url('wp-login.php', 'login') ?>"><?php _e('Log in') ?></a> | 480 479 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 481 </p> 480 </p></div> <!-- change --> 482 481 483 482 </div> 484 483 485 < p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>484 <div id="backtoblog"><p><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?><p></a></div> <!-- change --> 486 485 487 486 <script type="text/javascript"> 488 487 try{document.getElementById('user_login').focus();}catch(e){} … … 530 529 531 530 if ( !is_wp_error($user) ) { 532 531 if ( $interim_login ) { 533 $message = '< p class="message">' . __('You have logged in successfully.') . '</p>';532 $message = '<div class="message"><p>' . __('You have logged in successfully.') . '</p></div>'; /* change */ 534 533 login_header( '', $message ); ?> 535 534 <script type="text/javascript">setTimeout( function(){window.close()}, 8000);</script> 536 535 <p class="alignright"> … … 597 596 </form> 598 597 599 598 <?php if ( !$interim_login ) { ?> 600 < p id="nav">599 <div id="nav"><p> <!-- change --> 601 600 <?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 602 601 <?php elseif ( get_option('users_can_register') ) : ?> 603 602 <a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> | … … 605 604 <?php else : ?> 606 605 <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a> 607 606 <?php endif; ?> 608 </p> 607 </p></div> <!-- change --> 609 608 610 < p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>609 <div id="backtoblog"><p><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php printf(__('← Back to %s'), get_bloginfo('title', 'display' )); ?></a><p></div> <!-- change --> 611 610 <?php } ?> 612 611 </div> 613 612