[wp-trac] [WordPress Trac] #19937: 'remove_menu_page' causes a Warning when 'Edit Image'

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 31 20:35:22 UTC 2012


#19937: 'remove_menu_page' causes a Warning when 'Edit Image'
---------------------------+-----------------------------
 Reporter:  carlos_a_sanz  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Media          |    Version:  3.3.1
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 Calling '''remove_menu_page''' function on a '''admin_init''' hook causes
 this warning:

 ''Warning: Invalid argument supplied for foreach() in
 /users/knut/workspace/adlerfresneda.com/htdocs/dev/wp-
 admin/includes/plugin.php on line 1261''

 This occurs when [Edit Image] has tightened on '''Media''' section and
 '''MediaUpload''' popup, therfore, the image for editing does not load.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19937>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list