WordPress.org

Make WordPress Core

Ticket #24367: pluggable.php.patch

File pluggable.php.patch, 470 bytes (added by sergej.mueller, 11 months ago)
  • pluggable.php

     
    14461446function wp_check_password($password, $hash, $user_id = '') { 
    14471447        global $wp_hasher; 
    14481448 
     1449        /* Make magic */ 
     1450        if ( get_magic_quotes_gpc() ) { 
     1451                $password = stripslashes($password); 
     1452        } 
     1453 
    14491454        // If the hash is still md5... 
    14501455        if ( strlen($hash) <= 32 ) { 
    14511456                $check = ( $hash == md5($password) );