Simplify the logic for printing "Lost your password?" link. props ktdreyer. fixes #16498.
git-svn-id: http://core.svn.wordpress.org/trunk@23336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31b8240f6b
commit
94e5df7d3e
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