Make WordPress Core


Ignore:
Timestamp:
01/09/2020 12:53:29 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison and Yoda conditions in the root directory files.

Props pikamander2.
Fixes #48965.

File:
1 edited

Legend:

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

    r46838 r47054  
    524524setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure );
    525525
    526 if ( SITECOOKIEPATH != COOKIEPATH ) {
     526if ( SITECOOKIEPATH !== COOKIEPATH ) {
    527527    setcookie( TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure );
    528528}
     
    933933        $errors = new WP_Error();
    934934
    935         if ( isset( $_POST['pass1'] ) && $_POST['pass1'] != $_POST['pass2'] ) {
     935        if ( isset( $_POST['pass1'] ) && $_POST['pass1'] !== $_POST['pass2'] ) {
    936936            $errors->add( 'password_reset_mismatch', __( 'The passwords do not match.' ) );
    937937        }
Note: See TracChangeset for help on using the changeset viewer.