Feeds: Add an early exit when calling RSS functions directly.

While this file is depracated, it shouldn't throw errors when called directly.

Fixes #35835.

Props thib3113, dd32, TheGP, flymike, zodiac1978, williampatton.

Built from https://develop.svn.wordpress.org/trunk@49619


git-svn-id: http://core.svn.wordpress.org/trunk@49357 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-11-16 22:52:05 +00:00
parent ec9434735a
commit 3c51950baf
2 changed files with 5 additions and 1 deletions

View File

@ -6,5 +6,9 @@
* @deprecated 2.1.0 * @deprecated 2.1.0
*/ */
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
_deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' ); _deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' );
require_once ABSPATH . WPINC . '/rss.php'; require_once ABSPATH . WPINC . '/rss.php';

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-beta4-49618'; $wp_version = '5.6-beta4-49619';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.