From 3c51950baf91ca2bedfbabe8987b90db18c41fbb Mon Sep 17 00:00:00 2001 From: whyisjake Date: Mon, 16 Nov 2020 22:52:05 +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. Built from https://develop.svn.wordpress.org/trunk@49619 git-svn-id: http://core.svn.wordpress.org/trunk@49357 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/rss-functions.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/rss-functions.php b/wp-includes/rss-functions.php index 40749db8bf..370960cecb 100644 --- a/wp-includes/rss-functions.php +++ b/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'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8f41e0dbe7..57a4ca857f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.