diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:56:49 +0000 |
commit | a415c29efee45520ae252d2aa28f1083a521cd7b (patch) | |
tree | f4ade4b6668ecc0765de7e1424f7c1427ad433ff /wp-includes/class-wp-feed-cache.php | |
parent | Initial commit. (diff) | |
download | wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.tar.xz wordpress-a415c29efee45520ae252d2aa28f1083a521cd7b.zip |
Adding upstream version 6.4.3+dfsg1.upstream/6.4.3+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | wp-includes/class-wp-feed-cache.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/wp-includes/class-wp-feed-cache.php b/wp-includes/class-wp-feed-cache.php new file mode 100644 index 0000000..f4ce15c --- /dev/null +++ b/wp-includes/class-wp-feed-cache.php @@ -0,0 +1,39 @@ +<?php +/** + * Feed API: WP_Feed_Cache class + * + * @package WordPress + * @subpackage Feed + * @since 4.7.0 + * @deprecated 5.6.0 + */ + +_deprecated_file( + basename( __FILE__ ), + '5.6.0', + '', + __( 'This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.' ) +); + +/** + * Core class used to implement a feed cache. + * + * @since 2.8.0 + */ +#[AllowDynamicProperties] +class WP_Feed_Cache extends SimplePie_Cache { + + /** + * Creates a new SimplePie_Cache object. + * + * @since 2.8.0 + * + * @param string $location URL location (scheme is used to determine handler). + * @param string $filename Unique identifier for cache object. + * @param string $extension 'spi' or 'spc'. + * @return WP_Feed_Cache_Transient Feed cache handler object that uses transients. + */ + public function create( $location, $filename, $extension ) { + return new WP_Feed_Cache_Transient( $location, $filename, $extension ); + } +} |