Opened 14 years ago
Closed 14 years ago
#15469 closed defect (bug) (fixed)
Undefined offset on pages without permission
Reported by: | wpdavis | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | minor | Version: | 3.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Avoid undefined offset error by moving call to add_menu_classes() until after the permissions check