Make WordPress Core


Ignore:
Timestamp:
01/22/2025 07:46:16 PM (5 months ago)
Author:
audrasjb
Message:

General: Stop direct loading of files in /wp-includes that should only be included.

This changeset restricts direct access call in /wp-includes and its sub directories.

Follow-up to [11768], [59678].

Props deepakrohilla.
Fixes #61314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom.php

    r52267 r59688  
    55 * @package WordPress
    66 */
     7
     8// Don't load directly.
     9if ( ! defined( 'ABSPATH' ) ) {
     10    die( '-1' );
     11}
    712
    813header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true );
Note: See TracChangeset for help on using the changeset viewer.