mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Load: remove class-feed.php (There is no class named Feed or WP_Feed, it just loads other classes) and, instead, move the require calls to the only place they are ever included: inside fetch_feed(). This simplifies the include path.
Tested with this feed in a widget: `http://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml`. See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Feed API
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Feed
|
||||
*/
|
||||
if ( ! class_exists( 'SimplePie', false ) ) {
|
||||
require_once( ABSPATH . WPINC . '/class-simplepie.php' );
|
||||
}
|
||||
|
||||
require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
|
||||
Reference in New Issue
Block a user