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/user/menu.php

    r47198 r59678  
    77 * @since 3.1.0
    88 */
     9
     10// Don't load directly.
     11if ( ! defined( 'ABSPATH' ) ) {
     12    die( '-1' );
     13}
    914
    1015$menu[2] = array( __( 'Dashboard' ), 'exist', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );
Note: See TracChangeset for help on using the changeset viewer.