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/wp-diff.php

    r59105 r59688  
    88 * @subpackage Diff
    99 */
     10
     11// Don't load directly.
     12if ( ! defined( 'ABSPATH' ) ) {
     13    die( '-1' );
     14}
    1015
    1116if ( ! class_exists( 'Text_Diff', false ) ) {
Note: See TracChangeset for help on using the changeset viewer.