diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index e3a33e735f..76cdb33d45 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1935,7 +1935,7 @@ function wp_check_password($password, $hash, $user_id = '') { // If the hash is still md5... if ( strlen($hash) <= 32 ) { - $check = ( $hash == md5($password) ); + $check = hash_equals( $hash, md5( $password ) ); if ( $check && $user_id ) { // Rehash using new hash. wp_set_password($password, $user_id); diff --git a/wp-includes/version.php b/wp-includes/version.php index db59251cdd..56552b730c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta1-30411'; +$wp_version = '4.1-beta1-30412'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.