wp-includes/SimplePie/src/Sanitize.php:151$enable_cachebooloptionaltrue$cache_locationstringoptional'./cache'$cache_name_functionoptional'md5'$cache_classSimplePie\class-string<Cache>optional\SimplePie\Cache::class$cache?\SimplePie\Cache\DataCacheoptionalnullvoid public function pass_cache_data(bool $enable_cache = true, string $cache_location = './cache', $cache_name_function = 'md5', string $cache_class = Cache::class, ?DataCache $cache = null) { $this->enable_cache = $enable_cache; if ($cache_location) { $this->cache_location = $cache_location; } // @phpstan-ignore-next-line Enforce PHPDoc type. if (!is_string($cache_name_function) && !$cache_name_function instanceof NameFilter) { throw new InvalidArgumentException(sprintf( '%s(): Argument #3 ($cache_name_function) must be of type %s', __METHOD__, NameFilter::class ), 1); } // BC: $cache_name_function could be a callable as string if (is_string($cache_name_function)) { // trigger_error(sprintf('Providing $cache_name_function as string in "%s()" is deprecated since SimplePie 1.8.0, provide as "%s" instead.', __METHOD__, NameFilter::class), \E_USER_DEPRECATED); $this->cache_name_function = $cache_name_function; $cache_name_function = new CallableNameFilter($cache_name_function); } $this->cache_namefilter = $cache_name_function; if ($cache !== null) { $this->cache = $cache; } }4 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$enable_cache retyped from untyped to bool.verified against source$cache_location retyped from untyped to string.verified against source$cache_class retyped from untyped to SimplePie\class-string<Cache>.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.