wp-includes/Requests/src/Transport/Fsockopen.php:506Self-test whether the transport can be used.
$capabilitiesoptional[]bool public static function test($capabilities = []) { if (!function_exists('fsockopen')) { return false; } // If needed, check that streams support SSL if (isset($capabilities[Capability::SSL]) && $capabilities[Capability::SSL]) { if (!extension_loaded('openssl') || !function_exists('openssl_x509_parse')) { return false; } } return true; }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/Requests/src/Transport/Fsockopen.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.