[wp-trac] [WordPress Trac] #16326: remove_menu_page doesn't work
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 20 22:47:00 UTC 2011
#16326: remove_menu_page doesn't work
----------------------------+------------------------------
Reporter: czepol | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------------------
Comment (by nacin):
That's cause $menu isn't set up yet. You need to wait until the admin_menu
hook or so.
Not sure why you're including includes/admin.php outside of an example.
You'd really only ever include that in rare cases (read: never), and in
those cases you wouldn't have a menu initialized.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16326#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list