wp-includes/SimplePie/src/Sanitize.php:599$documentDOMDocument$tagstring$attributesSimplePie\array<string>|stringvoid public function replace_urls(DOMDocument $document, string $tag, $attributes) { if (!is_array($attributes)) { $attributes = [$attributes]; } if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags)) { $elements = $document->getElementsByTagName($tag); foreach ($elements as $element) { foreach ($attributes as $attribute) { if ($element->hasAttribute($attribute)) { $value = $this->registry->call(Misc::class, 'absolutize_url', [$element->getAttribute($attribute), $this->base]); if ($value !== false) { $value = $this->https_url($value); $element->setAttribute($attribute, $value); } } } } } }4 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$document retyped from untyped to DOMDocument.verified against source$tag retyped from untyped to string.verified against source$attributes retyped from untyped to SimplePie\array<string>|string.verified against sourcenone to void.verified against sourcesrc/wp-includes/SimplePie/src/Sanitize.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.