#27067 closed defect (bug) (fixed)
wp-admin/plugin-editor.php dies when no plugins are installed
Reported by: | Denis-de-Bernardy | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Plugins | Keywords: | has-patch commit |
Focuses: | ui, administration | Cc: |
Description
When you visit wp-admin/plugin-editor.php
without any plugins installed, WP immediately bails with wp_die()
:
There are no plugins installed on this site.
It should instead:
- Present a normal admin page, complete with admin navigation. Or
- Not present the menu item to begin with.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Related: #13117
We wouldn't want to call
get_plugins()
on every admin page load just to hide the menu item, see [14299].27067.patch turns the
wp_die()
message into a regular admin page with header and footer.