Make WordPress Core


Ignore:
Timestamp:
01/22/2025 02:04:34 PM (5 months ago)
Author:
audrasjb
Message:

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

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

Follow-up to [11768].

Props deepakrohilla.
See #61314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-functions.php

    r47198 r59678  
    1010 */
    1111
     12// Don't load directly.
     13if ( ! defined( 'ABSPATH' ) ) {
     14    die( '-1' );
     15}
     16
    1217_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
    1318
Note: See TracChangeset for help on using the changeset viewer.