[wp-trac] [WordPress Trac] #17585: Function remove_menu_page() makes an error message

WordPress Trac wp-trac at lists.automattic.com
Fri May 27 07:31:46 UTC 2011


#17585: Function remove_menu_page() makes an error message
-----------------------------------------+------------------------------
 Reporter:  Surbma                       |       Owner:
     Type:  task (blessed)               |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Plugins                      |     Version:  3.1.3
 Severity:  normal                       |  Resolution:
 Keywords:  reporter-feedback has-patch  |
-----------------------------------------+------------------------------
Changes (by Surbma):

 * keywords:  reporter-feedback => reporter-feedback has-patch
 * type:  defect (bug) => task (blessed)


Comment:

 This is the official reference:
 http://codex.wordpress.org/Function_Reference/remove_menu_page

 It suggests to hook on admin_init. If this is not the right hook, than the
 reference should be changed. I used this hook in 3.1.2 and before without
 any error.

 I've changed the hook to admin_menu and it is now working without the
 error message. :) So I see, this is not a bug, but a wrong instruction in
 the codex.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17585#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list