From 4b8faba8db89ed37b522ab1718cc63bebe4e0c12 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Mon, 16 Nov 2020 22:50:03 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@49619 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rss-functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/rss-functions.php b/src/wp-includes/rss-functions.php index 40749db8bf..370960cecb 100644 --- a/src/wp-includes/rss-functions.php +++ b/src/wp-includes/rss-functions.php @@ -6,5 +6,9 @@ * @deprecated 2.1.0 */ +if ( ! defined( 'ABSPATH' ) ) { + exit(); +} + _deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' ); require_once ABSPATH . WPINC . '/rss.php';