Remove SimplePie 1.2/1.3 compatibility code no longer needed with 1.3.1. see #22321. see #21183.

git-svn-id: https://develop.svn.wordpress.org/trunk@22599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-11-15 09:51:02 +00:00
parent 6b7e6f9271
commit 709b1f25d0
2 changed files with 12 additions and 22 deletions
+10 -14
View File
@@ -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;