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:
Scott Taylor
2016-08-26 17:52:05 +00:00
parent 223b79162c
commit aad8b9805e
3 changed files with 9 additions and 17 deletions
+1
View File
@@ -706,6 +706,7 @@ $_old_files = array(
// 4.6
'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628.
// 4.7
'wp-includes/class-feed.php',
'wp-includes/locale.php',
'wp-includes/session.php',
);