Ticket #57317: 57317.patch
File 57317.patch, 1.3 KB (added by , 2 years ago) |
---|
-
includes/user.php
173 173 } 174 174 175 175 // Checking the password has been typed twice the same. 176 if ( ( $update || ! empty( $pass1 ) ) && $pass1 != $pass2 ) {176 if ( ( $update || ! empty( $pass1 ) ) && $pass1 !== $pass2 ) { 177 177 $errors->add( 'pass', __( '<strong>Error:</strong> Passwords do not match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) ); 178 178 } 179 179 … … 479 479 480 480 // get_user_setting() = JS-saved UI setting. Else no-js-fallback code. 481 481 if ( 'hide' === get_user_setting( 'default_password_nag' ) 482 || isset( $_GET['default_password_nag'] ) && '0' == $_GET['default_password_nag']482 || isset( $_GET['default_password_nag'] ) && '0' === $_GET['default_password_nag'] 483 483 ) { 484 484 delete_user_setting( 'default_password_nag' ); 485 485 update_user_meta( $user_ID, 'default_password_nag', false ); … … 501 501 $new_data = get_userdata( $user_ID ); 502 502 503 503 // Remove the nag if the password has been changed. 504 if ( $new_data->user_pass != $old_data->user_pass ) {504 if ( $new_data->user_pass !== $old_data->user_pass ) { 505 505 delete_user_setting( 'default_password_nag' ); 506 506 update_user_meta( $user_ID, 'default_password_nag', false ); 507 507 }