Ticket #55459: 55459.diff
File 55459.diff, 3.2 KB (added by , 3 years ago) |
---|
-
src/wp-login.php
526 526 */ 527 527 $login_link_separator = apply_filters( 'login_link_separator', ' | ' ); 528 528 529 // Assign filterable labels for form controls. 530 $defaults = array( 531 'label_username' => __( 'Username or Email Address' ), 532 'label_password' => __( 'Password' ), 533 'label_remember' => __( 'Remember Me' ), 534 'label_log_in' => __( 'Log In' ), 535 ); 536 537 /** This filter is documented in wp-includes/general-template.php */ 538 $labels = apply_filters( 'login_form_defaults', $defaults ); 539 529 540 switch ( $action ) { 530 541 531 542 case 'confirm_admin_email': … … 826 837 827 838 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> 828 839 <p> 829 <label for="user_login"><?php _e( 'Username or Email Address'); ?></label>840 <label for="user_login"><?php echo esc_html( $labels['label_username'] ); ?></label> 830 841 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" /> 831 842 </p> 832 843 <?php … … 1396 1407 1397 1408 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> 1398 1409 <p> 1399 <label for="user_login"><?php _e( 'Username or Email Address'); ?></label>1410 <label for="user_login"><?php echo esc_html( $labels['label_username'] ); ?></label> 1400 1411 <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" /> 1401 1412 </p> 1402 1413 1403 1414 <div class="user-pass-wrap"> 1404 <label for="user_pass"><?php _e( 'Password'); ?></label>1415 <label for="user_pass"><?php echo esc_html( $labels['label_password'] ); ?></label> 1405 1416 <div class="wp-pwd"> 1406 1417 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" autocomplete="current-password" /> 1407 1418 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> … … 1419 1430 do_action( 'login_form' ); 1420 1431 1421 1432 ?> 1422 <p class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <label for="rememberme"><?php e sc_html_e( 'Remember Me'); ?></label></p>1433 <p class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <label for="rememberme"><?php echo esc_html( $labels['label_remember'] ); ?></label></p> 1423 1434 <p class="submit"> 1424 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php e sc_attr_e( 'Log In'); ?>" />1435 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php echo esc_attr( $labels['label_log_in'] ); ?>" /> 1425 1436 <?php 1426 1437 1427 1438 if ( $interim_login ) {