[wp-trac] [WordPress Trac] #22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
WordPress Trac
noreply at wordpress.org
Tue Oct 30 18:01:40 UTC 2012
#22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
--------------------------+------------------------------
Reporter: Viper007Bond | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.4.2
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Comment (by griffinjt):
On the topic of versioning dependencies, I discussed this at length with a
friend of mine who is a PHP/Java developer and we came up with this:
https://github.com/bubba-h57/PHP-Library-Version-Framework. Using
namespaces plus a factory was the only viable way we could find to fix the
issue of class version dependencies, but that can't even be considered
until WordPress support PHP 5.3 and most plugin devs won't be able to
implement something like it.
While I think header comments are nice, I think a more robust API should
be created for handling this, especially when you start getting into the
issue of forcing activation/deactivation with dependencies. Maybe header
comments could be used to initialize the API, and from there plugin dev
could utilize a class with hooks/filters.
External plugin dependencies (e.g. commercial plugins) should also at
least be considered should something like this make it into core. There
doesn't need to be a specific way to handle external items but at least
some hooks or filters to allow commercial plugins to make use of it.
I'd be more than happy to contribute to the planning and development
process of this. It's why I created TGM Plugin Activation in the first
place. :-)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22316#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list