user_pass) ) { return false; } // If using old md5 password, rehash. if ( strlen($user->user_pass) > 32 ) { $hash = wp_hash_password($pass); $bbdb->query( $bbdb->prepare( "UPDATE $bbdb->users SET user_pass = %s WHERE ID = %d", $hash, $user->ID ) ); global $bb_cache; $bb_cache->flush_one( 'user', $user->ID ); $user = bb_get_user( $user->ID ); } return $user; } } if ( !function_exists( 'wp_hash_password' ) ) { function wp_hash_password($password) { return md5($password); } } ?>