#14010 closed defect (bug) (fixed)
PHP Notice: Undefined index in /wp-admin/plugins.php on line 16
| Reported by: | jorbin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Administration | Version: | 3.0 |
| Severity: | trivial | Keywords: | has-patch commit |
| Cc: | Focuses: |
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)
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.