Login and Registration: Remove newpass
value handling in wp-login.php
.
This value is never set as of [15710]. See #40605. git-svn-id: https://develop.svn.wordpress.org/trunk@48303 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c9b4885dc8
commit
6dda17adbe
@ -1330,8 +1330,6 @@ switch ( $action ) {
|
||||
$errors->add( 'registerdisabled', __( 'User registration is currently not allowed.' ) );
|
||||
} elseif ( isset( $_GET['checkemail'] ) && 'confirm' === $_GET['checkemail'] ) {
|
||||
$errors->add( 'confirm', __( 'Check your email for the confirmation link.' ), 'message' );
|
||||
} elseif ( isset( $_GET['checkemail'] ) && 'newpass' === $_GET['checkemail'] ) {
|
||||
$errors->add( 'newpass', __( 'Check your email for your new password.' ), 'message' );
|
||||
} elseif ( isset( $_GET['checkemail'] ) && 'registered' === $_GET['checkemail'] ) {
|
||||
$errors->add( 'registered', __( 'Registration complete. Please check your email.' ), 'message' );
|
||||
} elseif ( strpos( $redirect_to, 'about.php?updated' ) ) {
|
||||
@ -1431,7 +1429,7 @@ switch ( $action ) {
|
||||
<p id="nav">
|
||||
<?php
|
||||
|
||||
if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) {
|
||||
if ( ! isset( $_GET['checkemail'] ) || 'confirm' !== $_GET['checkemail'] ) {
|
||||
if ( get_option( 'users_can_register' ) ) {
|
||||
$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user