wp-includes/SimplePie/src/Enclosure.php:199Constructor, used to input the data
$link?stringoptionalnull$type?stringoptionalnull$length?intoptionalnull$javascriptnulloptionalnull$bitrate?stringoptionalnull$captionsSimplePie\Caption[]|nulloptionalnull$categoriesSimplePie\Category[]|nulloptionalnull$channels?intoptionalnull$copyright?\SimplePie\Copyrightoptionalnull$creditsSimplePie\Credit[]|nulloptionalnull$description?stringoptionalnull$duration?intoptionalnull$expression?stringoptionalnull$framerate?stringoptionalnull$hashesstring[]|nulloptionalnull$height?stringoptionalnull$keywordsstring[]|nulloptionalnull$lang?stringoptionalnull$medium?stringoptionalnull$player?stringoptionalnull$ratingsSimplePie\Rating[]|nulloptionalnull$restrictionsSimplePie\Restriction[]|nulloptionalnull$samplingrate?stringoptionalnull$thumbnailsstring[]|nulloptionalnull$title?stringoptionalnull$width?stringoptionalnull public function __construct( ?string $link = null, ?string $type = null, ?int $length = null, $javascript = null, ?string $bitrate = null, ?array $captions = null, ?array $categories = null, ?int $channels = null, ?Copyright $copyright = null, ?array $credits = null, ?string $description = null, ?int $duration = null, ?string $expression = null, ?string $framerate = null, ?array $hashes = null, ?string $height = null, ?array $keywords = null, ?string $lang = null, ?string $medium = null, ?string $player = null, ?array $ratings = null, ?array $restrictions = null, ?string $samplingrate = null, ?array $thumbnails = null, ?string $title = null, ?string $width = null ) { $this->bitrate = $bitrate; $this->captions = $captions; $this->categories = $categories; $this->channels = $channels; $this->copyright = $copyright; $this->credits = $credits; $this->description = $description; $this->duration = $duration; $this->expression = $expression; $this->framerate = $framerate; $this->hashes = $hashes; $this->height = $height; $this->keywords = $keywords; $this->lang = $lang; $this->length = $length; $this->link = $link; $this->medium = $medium; $this->player = $player; $this->ratings = $ratings; $this->restrictions = $restrictions; $this->samplingrate = $samplingrate; $this->thumbnails = $thumbnails; $this->title = $title; $this->type = $type; $this->width = $width; if (function_exists('idn_to_ascii')) { $parsed = \SimplePie\Misc::parse_url($link ?? ''); if ($parsed['authority'] !== '' && !ctype_print($parsed['authority'])) { $authority = (string) \idn_to_ascii($parsed['authority'], \IDNA_NONTRANSITIONAL_TO_ASCII, \INTL_IDNA_VARIANT_UTS46); $this->link = \SimplePie\Misc::compress_parse_url($parsed['scheme'], $authority, $parsed['path'], $parsed['query'], $parsed['fragment']); } } $this->handler = $this->get_handler(); // Needs to load last }26 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$link retyped from untyped to ?string.verified against source$type retyped from untyped to ?string.verified against source$length retyped from untyped to ?int.verified against source$javascript retyped from untyped to null.verified against source$bitrate retyped from untyped to ?string.verified against source$captions retyped from untyped to SimplePie\Caption[]|null.verified against source$categories retyped from untyped to SimplePie\Category[]|null.verified against source$channels retyped from untyped to ?int.verified against source$copyright retyped from untyped to ?\SimplePie\Copyright.verified against source$credits retyped from untyped to SimplePie\Credit[]|null.verified against source$description retyped from untyped to ?string.verified against source$duration retyped from untyped to ?int.verified against source$expression retyped from untyped to ?string.verified against source$framerate retyped from untyped to ?string.verified against source$hashes retyped from untyped to string[]|null.verified against source$height retyped from untyped to ?string.verified against source$keywords retyped from untyped to string[]|null.verified against source$lang retyped from untyped to ?string.verified against source$medium retyped from untyped to ?string.verified against source$player retyped from untyped to ?string.verified against source$ratings retyped from untyped to SimplePie\Rating[]|null.verified against source$restrictions retyped from untyped to SimplePie\Restriction[]|null.verified against source$samplingrate retyped from untyped to ?string.verified against source$thumbnails retyped from untyped to string[]|null.verified against source$title retyped from untyped to ?string.verified against source$width retyped from untyped to ?string.verified against sourcesrc/wp-includes/SimplePie/src/Enclosure.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.