Handling plugin dependencies
|Reported by:||apeatling||Owned by:||westi|
|Cc:||shidouhikari, mikeschinkel@…, hebipp1@…, zanematthew@…, boonebgorges@…, stephen@…, lkraav|
I wanted to start a ticket for this so I have my ideas down for discussion.
BuddyPress would benefit greatly if WordPress could natively handle plugin dependancies, but I can also see this being a useful feature for plugins that want to use the existing WP plugin API for extensions.
As it stands, users who install plugins designed for BuddyPress have to manually deactivate each plugin before upgrading or deactivating BuddyPress. They also need to make sure BuddyPress is active before installing a dependant plugin (many people don't and see errors).
So, I think two things should be handled:
- Making sure the plugin that is being depended on is active before activating the dependant plugin.
- Making sure when the plugin being depended on is deactivated, all dependant plugins are first deactivated.
This could be kept very simple for plugin authors. They could add something like this to their plugin comment header:
Requires: plugin-name [, plugin-name ... ]
I'll have a crack at a patch for this sometime in the new year, happy to debate this thoroughly before then.
Change History (26)
- Milestone 3.0 deleted
- Resolution set to worksforme
- Status changed from new to closed