[wp-trac] [WordPress Trac] #43714: remove_menu_page(): E_WARNING: Invalid argument supplied for foreach()

WordPress Trac noreply at wordpress.org
Fri Aug 17 18:33:56 UTC 2018


#43714: remove_menu_page(): E_WARNING: Invalid argument supplied for foreach()
-------------------------------+------------------------------
 Reporter:  conner_bw          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Menus              |     Version:  4.9.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by welcher):

 * keywords:   => reporter-feedback


Comment:

 @conner_bw thanks for the ticket! It looks like you're calling
 `remove_menu_item()` via a custom framework. Are you able to reproduce
 this error with a clean install of WordPress without any third-party code?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43714#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list