Changeset 49565 for trunk/src/wp-includes/feed.php
- Timestamp:
- 11/12/2020 02:34:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed.php
r48435 r49565 790 790 } 791 791 792 require_once ABSPATH . WPINC . '/class-wp-feed-cache.php';793 792 require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php'; 794 793 require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php'; … … 802 801 $feed->sanitize = new WP_SimplePie_Sanitize_KSES(); 803 802 804 $feed->set_cache_class( 'WP_Feed_Cache' ); 803 // Register the cache handler using the recommended method for SimplePie 1.3 or later. 804 if ( method_exists( 'SimplePie_Cache', 'register' ) ) { 805 SimplePie_Cache::register( 'wp_transient', 'WP_Feed_Cache_Transient' ); 806 $feed->set_cache_location( 'wp_transient' ); 807 } else { 808 // Back-compat for SimplePie 1.2.x. 809 require_once ABSPATH . WPINC . '/class-wp-feed-cache.php'; 810 $feed->set_cache_class( 'WP_Feed_Cache' ); 811 } 812 805 813 $feed->set_file_class( 'WP_SimplePie_File' ); 806 814
Note: See TracChangeset
for help on using the changeset viewer.