Ticket #55459: 55459.1.diff
File 55459.1.diff, 3.2 KB (added by , 2 years ago) |
---|
-
src/wp-login.php
529 529 */ 530 530 $login_link_separator = apply_filters( 'login_link_separator', ' | ' ); 531 531 532 // Assign default labels for form controls. 533 $defaults = array( 534 'label_username' => __( 'Username or Email Address' ), 535 'label_password' => __( 'Password' ), 536 'label_remember' => __( 'Remember Me' ), 537 'label_log_in' => __( 'Log In' ), 538 ); 539 540 /** 541 * Filters the default login form labels. 542 * 543 * @since 6.1.0 544 * 545 * @param array $defaults An array of default login form labels. 546 */ 547 $labels = apply_filters( 'login_form_labels', $defaults ); 548 532 549 switch ( $action ) { 533 550 534 551 case 'confirm_admin_email': … … 829 846 830 847 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> 831 848 <p> 832 <label for="user_login"><?php _e( 'Username or Email Address'); ?></label>849 <label for="user_login"><?php echo esc_html( $labels['label_username'] ); ?></label> 833 850 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" /> 834 851 </p> 835 852 <?php … … 1399 1416 1400 1417 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"> 1401 1418 <p> 1402 <label for="user_login"><?php _e( 'Username or Email Address'); ?></label>1419 <label for="user_login"><?php echo esc_html( $labels['label_username'] ); ?></label> 1403 1420 <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" /> 1404 1421 </p> 1405 1422 1406 1423 <div class="user-pass-wrap"> 1407 <label for="user_pass"><?php _e( 'Password'); ?></label>1424 <label for="user_pass"><?php echo esc_html( $labels['label_password'] ); ?></label> 1408 1425 <div class="wp-pwd"> 1409 1426 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" autocomplete="current-password" /> 1410 1427 <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' ); ?>"> … … 1422 1439 do_action( 'login_form' ); 1423 1440 1424 1441 ?> 1425 <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>1442 <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> 1426 1443 <p class="submit"> 1427 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php e sc_attr_e( 'Log In'); ?>" />1444 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php echo esc_attr( $labels['label_log_in'] ); ?>" /> 1428 1445 <?php 1429 1446 1430 1447 if ( $interim_login ) {