wp-includes/SimplePie/src/Locator.php:143$file$check_htmloptionalfalse public function is_feed($file, $check_html = false) { if ($file->method & \SimplePie\SimplePie::FILE_SOURCE_REMOTE) { $sniffer = $this->registry->create(Content\Type\Sniffer::class, [$file]); $sniffed = $sniffer->get_type(); $mime_types = ['application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml', 'application/x-rss+xml']; if ($check_html) { $mime_types[] = 'text/html'; } return in_array($sniffed, $mime_types); } elseif ($file->method & \SimplePie\SimplePie::FILE_SOURCE_LOCAL) { return true; } else { return false; } }3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$file retyped from untyped to SimplePie\HTTP\Response.verified against source$check_html retyped from untyped to bool.verified against sourcenone to bool.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.