Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-includes / class-phpass.php
index ad474bcc502c5ccd5d6082fd8caab6199d757def..2fed5d76853741cf7848b14b111f476b69e7b343 100644 (file)
@@ -49,7 +49,7 @@ class PasswordHash {
 
                $this->portable_hashes = $portable_hashes;
 
-               $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compability reasons
+               $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons
        }
 
        function get_random_bytes($count)
@@ -253,7 +253,7 @@ class PasswordHash {
                if ($hash[0] == '*')
                        $hash = crypt($password, $stored_hash);
 
-               return $hash == $stored_hash;
+               return $hash === $stored_hash;
        }
 }