[wp-trac] [WordPress Trac] #18327: remove_menu_page('index.php'); causes Notices - risk of unexpected results?
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 4 12:36:26 UTC 2011
#18327: remove_menu_page('index.php'); causes Notices - risk of unexpected results?
--------------------------+-----------------------------
Reporter: anmari | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.2.1
Severity: trivial | Keywords:
--------------------------+-----------------------------
Thanks for the new remove_menu functions!
However if one adds action on admin menu and does
remove_menu_page('index.php');
This causes a lot of notices
Notice: Undefined offset: 0 in C:\web\wpbeta\wp\wp-admin\includes\menu.php
on line 161
Notice: Undefined offset: 2 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 51
Notice: Undefined offset: 2 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 56
Notice: Undefined offset: 2 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 61
Notice: Undefined offset: 0 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 81
Notice: Undefined offset: 2 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 87
Notice: Undefined offset: 2 in C:\web\wpbeta\wp\wp-admin\menu-header.php
on line 112
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18327>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list