Load: Re-add class-feed.php.

`class-feed.php` is occasionally included directly by custom external code, so should continue to be available. This is deprecated in favour of calling `fetch_feed()`, however..

Partial revert of [38374].
See #36335, #39027.



git-svn-id: https://develop.svn.wordpress.org/trunk@39449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2016-12-03 03:29:23 +00:00
parent 289ced158b
commit 0b1ff178a7
2 changed files with 19 additions and 1 deletions

View File

@ -707,7 +707,7 @@ $_old_files = array(
'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628. 'wp-admin/includes/class-wp-automatic-upgrader.php', // Wrong file name, see #37628.
// 4.7 // 4.7
'wp-admin/includes/class-wp-upgrader-skins.php', 'wp-admin/includes/class-wp-upgrader-skins.php',
'wp-includes/class-feed.php', //Don't delete, yet: wp-includes/class-feed.php',
'wp-includes/locale.php', 'wp-includes/locale.php',
'wp-includes/session.php', 'wp-includes/session.php',
'wp-includes/customize/class-wp-customize-themes-panel.php', // Removed in beta; when the feature comes back remember to remove it from this array. See #37661. 'wp-includes/customize/class-wp-customize-themes-panel.php', // Removed in beta; when the feature comes back remember to remove it from this array. See #37661.

View File

@ -0,0 +1,18 @@
<?php
/**
* Feed API
*
* @package WordPress
* @subpackage Feed
*/
_deprecated_file( basename( __FILE__ ), '4.7.0', 'fetch_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' );