Make WordPress Core


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

    r47198 r59688  
    4040 */
    4141
     42// Don't load directly.
     43if ( ! defined( 'ABSPATH' ) ) {
     44        die( '-1' );
     45}
     46
    4247require_once ABSPATH . WPINC . '/IXR/class-IXR-server.php';
    4348
Note: See TracChangeset for help on using the changeset viewer.