wp-includes/Requests/src/Auth/Basic.php:71Register the necessary callbacks
$hooksWpOrg\Requests\Hooks public function register(Hooks $hooks) { $hooks->register('curl.before_send', [$this, 'curl_before_send']); $hooks->register('fsockopen.after_headers', [$this, 'fsockopen_header']); }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/Requests/src/Auth/Basic.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.