Make WordPress Core

Changeset 48303


Ignore:
Timestamp:
07/04/2020 09:13:56 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Remove newpass value handling in wp-login.php.

This value is never set as of [15710].

See #40605.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r48126 r48303  
    13311331            } elseif ( isset( $_GET['checkemail'] ) && 'confirm' === $_GET['checkemail'] ) {
    13321332                $errors->add( 'confirm', __( 'Check your email for the confirmation link.' ), 'message' );
    1333             } elseif ( isset( $_GET['checkemail'] ) && 'newpass' === $_GET['checkemail'] ) {
    1334                 $errors->add( 'newpass', __( 'Check your email for your new password.' ), 'message' );
    13351333            } elseif ( isset( $_GET['checkemail'] ) && 'registered' === $_GET['checkemail'] ) {
    13361334                $errors->add( 'registered', __( 'Registration complete. Please check your email.' ), 'message' );
     
    14321430                <?php
    14331431
    1434                 if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) {
     1432                if ( ! isset( $_GET['checkemail'] ) || 'confirm' !== $_GET['checkemail'] ) {
    14351433                    if ( get_option( 'users_can_register' ) ) {
    14361434                        $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
Note: See TracChangeset for help on using the changeset viewer.