Make WordPress Core

Changeset 53068


Ignore:
Timestamp:
04/05/2022 04:16:37 AM (3 years ago)
Author:
peterwilsoncc
Message:

Login, Registration: Fix coding standards errors in [53067].

See #35500.

File:
1 edited

Legend:

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

    r53067 r53068  
    910910
    911911            if ( empty( $_POST['pass1'] ) ) {
    912                 $errors->add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) );
    913             }
    914         }
     912                $errors->add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) );
     913            }
     914        }
    915915
    916916        // Check if password fields do not match.
    917         if ( ! empty( $_POST['pass1'] ) && $_POST['pass1'] !== trim( $_POST['pass2'] ) ) {
     917        if ( ! empty( $_POST['pass1'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) {
    918918            $errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
    919919        }
Note: See TracChangeset for help on using the changeset viewer.