Changeset 21652 for trunk/wp-includes/feed.php
- Timestamp:
- 08/29/2012 12:25:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed.php
r21239 r21652 533 533 534 534 $feed = new SimplePie(); 535 536 if ( version_compare( SIMPLEPIE_VERSION, '1.3-dev', '>' ) ) { 537 $feed->set_cache_location( 'wp-transient' ); 538 $feed->registry->register( 'Cache', 'WP_Feed_Cache_Transient' ); 539 $feed->registry->register( 'File', 'WP_SimplePie_File' ); 540 } else { 541 $feed->set_cache_class( 'WP_Feed_Cache' ); 542 $feed->set_file_class( 'WP_SimplePie_File' ); 543 } 544 535 545 $feed->set_feed_url($url); 536 $feed->set_cache_class('WP_Feed_Cache');537 $feed->set_file_class('WP_SimplePie_File');538 546 $feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200, $url)); 539 547 do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) );
Note: See TracChangeset
for help on using the changeset viewer.