Opened 15 years ago
Closed 15 years ago
#13117 closed defect (bug) (fixed)
Plugin editor falls over if no plugins are installed
Reported by: | solarissmoke | Owned by: | westi |
---|---|---|---|
Milestone: | 3.0 | Priority: | lowest |
Severity: | minor | Version: | 3.0 |
Component: | Plugins | Keywords: | has-patch |
Focuses: | Cc: |
Description
To reproduce:
Delete all plugins and then try to visit plugin editor.
Attachments (4)
Change History (19)
#2
follow-up:
↓ 3
@
15 years ago
In addition to the wp_die(), maybe we should hide the Editor menu item if no plugins are installed?
Also, terminology change in 3.0: blog => site. Clearly we haven't gotten to the other wp_die either.
@
15 years ago
Don't display plugin editor link when no plugins installed; wp-die plugin editor when no plugins installed; change "blog" -> "site"
#3
in reply to:
↑ 2
@
15 years ago
Replying to nacin:
maybe we should hide the Editor menu item if no plugins are installed?
I agree - changed the patch. Changed "blog" to "site" also.
#5
@
15 years ago
Do we really want to run get_plugins() on every admin page load? It can be really slow.
#8
@
15 years ago
Reverted the get_plugins() call. In the past it has caused notable slowness when called for every page load.
#9
follow-up:
↓ 10
@
15 years ago
Don't we have a Transient with the Slugs of installed plugins that we could use here?
#10
in reply to:
↑ 9
@
15 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to dd32:
Don't we have a Transient with the Slugs of installed plugins that we could use here?
Indeed we do!
#12
@
15 years ago
If we're going to do that, then if the transient === false, we should assume the blog has plugins. A) The transient may be expired, B) there is no guarantee the dashboard widget that controls it is registered.
#13
@
15 years ago
Yeah I realised that that could be a problem just after uploading the patch. I've changed it to check for === false.
wp-die if no plugins installed. Also removed some superfluous <p> tags from another wp-die statement