Ticket #47001: 47001.diff
File 47001.diff, 3.0 KB (added by , 5 years ago) |
---|
-
wp-includes/general-template.php
459 459 $defaults = array( 460 460 'echo' => true, 461 461 // Default 'redirect' value takes the user back to the request URI. 462 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 463 'form_id' => 'loginform', 464 'label_username' => __( 'Username or Email Address' ), 465 'label_password' => __( 'Password' ), 466 'label_remember' => __( 'Remember Me' ), 467 'label_log_in' => __( 'Log In' ), 468 'id_username' => 'user_login', 469 'id_password' => 'user_pass', 470 'id_remember' => 'rememberme', 471 'id_submit' => 'wp-submit', 472 'remember' => true, 473 'value_username' => '', 462 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 463 'form_id' => 'loginform', 464 'label_username' => __( 'Username or Email Address' ), 465 'label_password' => __( 'Password' ), 466 'label_remember' => __( 'Remember Me' ), 467 'label_log_in' => __( 'Log In' ), 468 'id_username' => 'user_login', 469 'id_password' => 'user_pass', 470 'id_remember' => 'rememberme', 471 'id_submit' => 'wp-submit', 472 'remember' => true, 473 'value_username' => '', 474 'username_required' => true, 475 'password_required' => true, 474 476 // Set 'value_remember' to true to default the "Remember me" checkbox to checked. 475 477 'value_remember' => false, 476 478 ); … … 528 530 ' . $login_form_top . ' 529 531 <p class="login-username"> 530 532 <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label> 531 <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20" 533 <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20"' . ( $args['username_required'] ? ' required="required"' : '' ) . '/> 532 534 </p> 533 535 <p class="login-password"> 534 536 <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label> 535 <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" 537 <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20"' . ( $args['password_required'] ? ' required="required"' : '' ) . '/> 536 538 </p> 537 539 ' . $login_form_middle . ' 538 540 ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . '