[wp-trac] Re: [WordPress Trac] #8782: PHP warnings on admin-post/admin-ajax requests if plugins add menu's on the admin_init hook

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


#8782: PHP warnings on admin-post/admin-ajax requests if plugins add menu's on the
admin_init hook
----------------------------+-----------------------------------------------
 Reporter:  DD32            |        Owner:  anonymous
     Type:  defect (bug)    |       Status:  new      
 Priority:  normal          |    Milestone:  2.8      
Component:  Administration  |      Version:  2.7      
 Severity:  normal          |   Resolution:           
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Changes (by DD32):

  * summary:  PHP warnings on admin-post/admin-ajax requests => PHP
              warnings on admin-post/admin-ajax requests if
              plugins add menu's on the admin_init hook

Comment:

 Ah.. The plugin in question appears to be using the admin_init hook, Not
 admin_menu, which explains the warnings (as admin_menu would only be
 called if there are menu's).

 Still, Seems like its a good idea to 'support' it.

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


More information about the wp-trac mailing list