Plugin editor incorrectly calls some files inactive.
|Reported by:||dd32||Owned by:|
The plugin editor has a helpful bit of text at the top to specify if the current file is active on the site or not; This works fine in most cases, however, I've noticed that it only works for the plugin file itself.
Ie. Editing akismet/akismet.php will specify it's active, Editing akismet/admin.php will show as inactive.
This is due to the use of is_plugin_active() from memory. The solution to this would be to run is_plugin_active() on $_GET['plugin'] instead of the file being edited.
$_GET['plugin'] has it's own bug however, It's set to whichever file was edited before you loaded the current file (when you switch between files in a plugin that is), which in some cases will be correct, in many others when you're editing multiple files, It'll be incorrect.
Change History (13)
- Summary changed from Plugin editor incorrectly calls some inactive. to Plugin editor incorrectly calls some files inactive.
comment:2 follow-ups: ↓ 3 ↓ 5 @solarissmoke — 4 years ago
- Keywords has-patch added; needs-patch removed