Make WordPress Core

Changeset 61853


Ignore:
Timestamp:
03/05/2026 09:07:11 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Code Quality: Explicitly globalize admin menu variables to avoid PHPStan warnings.

Follow-up to [15481].

Props huzaifaalmesbah, noruzzaman.
See #64238.

File:
1 edited

Legend:

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

    r61474 r61853  
    4141    do_action( '_admin_menu' );
    4242}
     43
     44/**
     45 * @global array $menu
     46 * @global array $submenu
     47 * @global array $compat
     48 */
     49global $menu, $submenu, $compat;
    4350
    4451// Create list of page plugin hook names.
Note: See TracChangeset for help on using the changeset viewer.