#14010 closed defect (bug) (fixed)
PHP Notice: Undefined index in /wp-admin/plugins.php on line 16
Reported by: | jorbin | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | trivial | Version: | 3.0 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
the $menu_permsplugins? could be empty causing a php notice. attached patch checks for an empty field in addition to not having ing the correct value to display the notice about the plugin page not being available for all users
Attachments (2)
Change History (7)
#1
@
15 years ago
- Milestone changed from Unassigned to 3.0.1
- Owner set to nacin
- Status changed from new to accepted
#3
@
15 years ago
- Milestone changed from 3.0.1 to 3.1
I'd leave this out of 3.0.1
We don't usually backport notices fixes to maintenance releases unless they unearth a true bug.
Note: See
TracTickets for help on using
tickets.
Closed #14012 as a duplicate.
The empty() check is all we need. Also, it looks like the branching here can be approved, by wrapping both the wp_die and add_action in a single empty() check, inside which we check for is_super_admin().
Trivial, but marking for 3.0.1, this came out of the last commit of 3.0 if I remember correctly.