[wp-trac] [WordPress Trac] #8782: PHP warnings on admin-post/admin-ajax requests

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 2 09:45:58 GMT 2009


#8782: PHP warnings on admin-post/admin-ajax requests
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous
     Type:  defect (bug)    |      Status:  new      
 Priority:  normal          |   Milestone:  2.8      
Component:  Administration  |     Version:  2.7      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 WordPress emits PHP Warnings on admin-post/admin-ajax requests if plugins
 add menu pages on the same request.

 It appears that menu.php is never included, and as such, {{{foreach( $menu
 ...}}} raises a warning, Casting these to an array beforehand fixes the
 warnings..

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


More information about the wp-trac mailing list