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

git-svn-id: http://core.svn.wordpress.org/trunk@22599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin
2012-11-15 09:51:02 +00:00
parent 1889d7de3b
commit dfeced9fd1
2 changed files with 12 additions and 22 deletions

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;