mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
737867e4ea
commit
4b8faba8db
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user