WordPress.org

Make WordPress Core

Ticket #26390: patch.diff

File patch.diff, 4.4 KB (added by codix, 7 years ago)
  • wp-login.php

    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' : 
    523523        $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : '';
    524524
    525525?>
    526 <?php do_action('lost_password_form_before'); ?>
     526<?php do_action('lost_password_form_before'); ?>
    527527<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    528528        <p>
    529529                <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
    case 'retrievepassword' : 
    539539        <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    540540        <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>
    541541</form>
    542 <?php do_action('lost_password_form_after'); ?>
     542<?php do_action('lost_password_form_after'); ?>
    543543<p id="nav">
    544544<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
    545545<?php
    case 'rp' : 
    601601        login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
    602602
    603603?>
    604 <?php do_action('reset_pass_form_before'); ?>
     604<?php do_action('reset_pass_form_before'); ?>
    605605<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">
    606606        <input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" />
    607607
    case 'rp' : 
    620620        <br class="clear" />
    621621        <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>
    622622</form>
    623 <?php do_action('reset_pass_form_after'); ?>
     623<?php do_action('reset_pass_form_after'); ?>
    624624<p id="nav">
    625625<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
    626626<?php
    case 'register' : 
    679679        $redirect_to = apply_filters( 'registration_redirect', $registration_redirect );
    680680        login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
    681681?>
    682 <?php do_action('register_form_before'); ?>
     682<?php do_action('register_form_before'); ?>
    683683<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
    684684        <p>
    685685                <label for="user_login"><?php _e('Username') ?><br />
    case 'register' : 
    702702        <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    703703        <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>
    704704</form>
    705 <?php do_action('register_form_after'); ?>
     705<?php do_action('register_form_after'); ?>
    706706<p id="nav">
    707707<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
    708708<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: 
    838838                $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(wp_unslash($_POST['log'])) : '';
    839839        $rememberme = ! empty( $_POST['rememberme'] );
    840840?>
    841 <?php do_action('login_form_before'); ?>
     841<?php do_action('login_form_before'); ?>
    842842<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    843843        <p>
    844844                <label for="user_login"><?php _e('Username') ?><br />
    default: 
    870870                <input type="hidden" name="testcookie" value="1" />
    871871        </p>
    872872</form>
    873 <?php do_action('login_form_after'); ?>
     873<?php do_action('login_form_after'); ?>
    874874<?php if ( ! $interim_login ) { ?>
    875875<p id="nav">
    876876<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :