wp-includes/SimplePie/src/Locator.php:67$fileSimplePie\File$timeoutintoptional10$useragent?stringoptionalnull$max_checked_feedsintoptional10$force_fsockopenbooloptionalfalse$curl_optionsarrayoptional[] public function __construct(File $file, int $timeout = 10, ?string $useragent = null, int $max_checked_feeds = 10, bool $force_fsockopen = false, array $curl_options = []) { $this->file = $file; $this->useragent = $useragent; $this->timeout = $timeout; $this->max_checked_feeds = $max_checked_feeds; $this->force_fsockopen = $force_fsockopen; $this->curl_options = $curl_options; $body = $this->file->get_body_content(); if (class_exists('DOMDocument') && $body != '') { $this->dom = new \DOMDocument(); set_error_handler([Misc::class, 'silence_errors']); try { $this->dom->loadHTML($body); } catch (\Throwable $ex) { $this->dom = null; } restore_error_handler(); } else { $this->dom = null; } }5 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$timeout retyped from untyped to int.verified against source$useragent retyped from untyped to ?string.verified against source$max_checked_feeds retyped from untyped to int.verified against source$force_fsockopen retyped from untyped to bool.verified against source$curl_options retyped from untyped to array.verified against sourcesrc/wp-includes/SimplePie/src/Locator.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.