Plugin Directory

Changeset 3098158

Timestamp:
06/05/2024 06:00:01 PM (2 months ago)
Author:
whiteshadow
Message:

Fix a potential crash if the menu is not a native array but is still array-like.

This is very much a special case and probably won't affect the vast majority of users. I ran into this issue while working with another developer plugin that directly modifies the admin menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin-menu-editor/trunk/includes/menu-editor-core.php

    r3096688 r3098158  
    53015301
    53025302        if ( !empty($menu) ) {
     5303
     5304
     5305
     5306
    53035307            //At this point, the menu might not be sorted yet, especially if other plugins have made changes to it.
    53045308            //We need to know the relative order of menus to insert new items in the right place.
Note: See TracChangeset for help on using the changeset viewer.