Simplify the logic for printing "Lost your password?" link. props ktdreyer. fixes #16498.
git-svn-id: https://develop.svn.wordpress.org/trunk@23336 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d2f7a3a4d
commit
b0e067cd0a
13
wp-login.php
13
wp-login.php
|
@ -702,14 +702,13 @@ default:
|
|||
</p>
|
||||
</form>
|
||||
|
||||
<?php if ( !$interim_login ) { ?>
|
||||
<?php if ( ! $interim_login ) { ?>
|
||||
<p id="nav">
|
||||
<?php if ( isset($_GET['checkemail']) && in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
|
||||
<?php elseif ( get_option('users_can_register') ) : ?>
|
||||
<a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> |
|
||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
|
||||
<?php else : ?>
|
||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
|
||||
<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : ?>
|
||||
<?php if ( get_option( 'users_can_register' ) ) : ?>
|
||||
<a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> |
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php } ?>
|
||||
|
|
Loading…
Reference in New Issue