[wp-trac] [WordPress Trac] #61479: Warnings when use remove_menu_page() with a non exist page.

WordPress Trac noreply at wordpress.org
Fri Jun 21 10:38:15 UTC 2024


#61479: Warnings when use remove_menu_page() with a non exist page.
----------------------------+-----------------------------
 Reporter:  Jose Lazo       |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  6.5.4
 Severity:  normal          |   Keywords:  has-screenshots
  Focuses:  administration  |
----------------------------+-----------------------------
 We use Sentry to track bugs in our project and when we use the doc
 function {{{remove_menu_page()}}} we receive numerous warnings for
 incorrect use of the {{{foreach}}} loop in the function.

 [[Image(https://postimg.cc/RqFDvr7D)]]

 It is necessary to check that each element of the global $menu contains a
 valid array.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61479>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list