Undefined offset on pages without permission
|Reported by:||wpdavis||Owned by:|
On pages in wp-admin/network, I was getting this error if multisite was not enabled:
Notice: Undefined offset: 0 in wp-admin/includes/menu.php on line 152
Attached patch moves the call to add_menu_classes(); until after the check if the user can access the page.