[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Feed API: WP_Feed_Cache class 4 * 5 * @package WordPress 6 * @subpackage Feed 7 * @since 4.7.0 8 * @deprecated 5.6.0 9 */ 10 11 _deprecated_file( 12 basename( __FILE__ ), 13 '5.6.0', 14 '', 15 __( 'This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.' ) 16 ); 17 18 /** 19 * Core class used to implement a feed cache. 20 * 21 * @since 2.8.0 22 */ 23 #[AllowDynamicProperties] 24 class WP_Feed_Cache extends SimplePie\Cache { 25 26 /** 27 * Creates a new SimplePie\Cache object. 28 * 29 * @since 2.8.0 30 * 31 * @param string $location URL location (scheme is used to determine handler). 32 * @param string $filename Unique identifier for cache object. 33 * @param string $extension 'spi' or 'spc'. 34 * @return WP_Feed_Cache_Transient Feed cache handler object that uses transients. 35 */ 36 public function create( $location, $filename, $extension ) { 37 return new WP_Feed_Cache_Transient( $location, $filename, $extension ); 38 } 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Dec 22 08:20:01 2024 | Cross-referenced by PHPXref |