Make WordPress Core


Ignore:
Timestamp:
01/22/2025 07:46:16 PM (18 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/vars.php

    r57923 r59688  
    1515 * @package WordPress
    1616 */
     17
     18// Don't load directly.
     19if ( ! defined( 'ABSPATH' ) ) {
     20        die( '-1' );
     21}
    1722
    1823global $pagenow,
Note: See TracChangeset for help on using the changeset viewer.