32 ) { global $wp_hasher; if ( empty($wp_hasher) ) { require_once( BB_PATH . BB_INC . 'class-phpass.php'); $wp_hasher = new PasswordHash(8, TRUE); } $check = $wp_hasher->CheckPassword($password, $hash); if ( $check && $user_id ) { // Rehash using new hash. wp_set_password($password, $user_id); $user = bb_get_user($user_id); $hash = $user->user_pass; } return apply_filters('check_password', $check, $password, $hash, $user_id); } $check = ( $hash == md5($password) ); return apply_filters('check_password', $check, $password, $hash, $user_id); } } if ( !function_exists( 'wp_hash_password' ) ) { function wp_hash_password($password) { return md5($password); } } ?>