Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not enable a plugin that does not meet its dependencies #379
There is a problem when a plugin is updated and then does not meet its dependencies.
On the Plugins page it is correctly shown as disabled due to dependency checks, but the processing in pluginlib.php, on each page load, treats it as still being enabled and the plugin's menu items etc are still displayed. Depending on what the dependencies actually are, this can cause a failure that can be difficult to diagnose.
This change adds a test of whether each plugin can be enabled and ignores plugins that are already enabled but fail the test.