mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@22599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+10
-14
@@ -3,21 +3,17 @@
|
||||
if ( !class_exists('SimplePie') )
|
||||
require_once (ABSPATH . WPINC . '/class-simplepie.php');
|
||||
|
||||
if ( version_compare( SIMPLEPIE_VERSION, '1.3-dev', '>' ) ) :
|
||||
SimplePie_Cache::register( 'wp-transient', 'WP_Feed_Cache_Transient' );
|
||||
else :
|
||||
class WP_Feed_Cache extends SimplePie_Cache {
|
||||
/**
|
||||
* Create a new SimplePie_Cache object
|
||||
*
|
||||
* @static
|
||||
* @access public
|
||||
*/
|
||||
function create($location, $filename, $extension) {
|
||||
return new WP_Feed_Cache_Transient($location, $filename, $extension);
|
||||
}
|
||||
class WP_Feed_Cache extends SimplePie_Cache {
|
||||
/**
|
||||
* Create a new SimplePie_Cache object
|
||||
*
|
||||
* @static
|
||||
* @access public
|
||||
*/
|
||||
function create($location, $filename, $extension) {
|
||||
return new WP_Feed_Cache_Transient($location, $filename, $extension);
|
||||
}
|
||||
endif;
|
||||
}
|
||||
|
||||
class WP_Feed_Cache_Transient {
|
||||
var $name;
|
||||
|
||||
Reference in New Issue
Block a user