From 59042403d2b232fc56e5fbac18ea449668449566 Mon Sep 17 00:00:00 2001
From: S H Mohanjith <moha@mohanjith.net>
Date: Wed, 4 Dec 2013 14:11:38 +0200
Subject: [PATCH] i
---
wp-login.php | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/wp-login.php b/wp-login.php
index 6013579..22620a7 100644
a
|
b
|
case 'retrievepassword' : |
523 | 523 | $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : ''; |
524 | 524 | |
525 | 525 | ?> |
526 | | <?php do_action('lost_password_form_before'); ?> |
| 526 | <?php do_action('lost_password_form_before'); ?> |
527 | 527 | <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> |
528 | 528 | <p> |
529 | 529 | <label for="user_login" ><?php _e('Username or E-mail:') ?><br /> |
… |
… |
case 'retrievepassword' : |
539 | 539 | <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> |
540 | 540 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Get New Password'); ?>" /></p> |
541 | 541 | </form> |
542 | | <?php do_action('lost_password_form_after'); ?> |
| 542 | <?php do_action('lost_password_form_after'); ?> |
543 | 543 | <p id="nav"> |
544 | 544 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
545 | 545 | <?php |
… |
… |
case 'rp' : |
601 | 601 | login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors ); |
602 | 602 | |
603 | 603 | ?> |
604 | | <?php do_action('reset_pass_form_before'); ?> |
| 604 | <?php do_action('reset_pass_form_before'); ?> |
605 | 605 | <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post" autocomplete="off"> |
606 | 606 | <input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" /> |
607 | 607 | |
… |
… |
case 'rp' : |
620 | 620 | <br class="clear" /> |
621 | 621 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p> |
622 | 622 | </form> |
623 | | <?php do_action('reset_pass_form_after'); ?> |
| 623 | <?php do_action('reset_pass_form_after'); ?> |
624 | 624 | <p id="nav"> |
625 | 625 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
626 | 626 | <?php |
… |
… |
case 'register' : |
679 | 679 | $redirect_to = apply_filters( 'registration_redirect', $registration_redirect ); |
680 | 680 | login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors); |
681 | 681 | ?> |
682 | | <?php do_action('register_form_before'); ?> |
| 682 | <?php do_action('register_form_before'); ?> |
683 | 683 | <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post"> |
684 | 684 | <p> |
685 | 685 | <label for="user_login"><?php _e('Username') ?><br /> |
… |
… |
case 'register' : |
702 | 702 | <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> |
703 | 703 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p> |
704 | 704 | </form> |
705 | | <?php do_action('register_form_after'); ?> |
| 705 | <?php do_action('register_form_after'); ?> |
706 | 706 | <p id="nav"> |
707 | 707 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | |
708 | 708 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a> |
… |
… |
default: |
838 | 838 | $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(wp_unslash($_POST['log'])) : ''; |
839 | 839 | $rememberme = ! empty( $_POST['rememberme'] ); |
840 | 840 | ?> |
841 | | <?php do_action('login_form_before'); ?> |
| 841 | <?php do_action('login_form_before'); ?> |
842 | 842 | <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> |
843 | 843 | <p> |
844 | 844 | <label for="user_login"><?php _e('Username') ?><br /> |
… |
… |
default: |
870 | 870 | <input type="hidden" name="testcookie" value="1" /> |
871 | 871 | </p> |
872 | 872 | </form> |
873 | | <?php do_action('login_form_after'); ?> |
| 873 | <?php do_action('login_form_after'); ?> |
874 | 874 | <?php if ( ! $interim_login ) { ?> |
875 | 875 | <p id="nav"> |
876 | 876 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |