WordPress/wp-includes/rss-functions.php
whyisjake 3c51950baf 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
2020-11-16 22:52:05 +00:00

15 lines
255 B
PHP

<?php
/**
* Deprecated. Use rss.php instead.
*
* @package WordPress
* @deprecated 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
_deprecated_file( basename( __FILE__ ), '2.1.0', WPINC . '/rss.php' );
require_once ABSPATH . WPINC . '/rss.php';