[wp-trac] [WordPress Trac] #22316: Plugin Dependencies (Yet Another Plugin Dependencies Ticket)
WordPress Trac
noreply at wordpress.org
Sat Dec 29 13:48:46 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 |
--------------------------+------------------------------
Changes (by jltallon):
* cc: jltallon@… (added)
Comment:
Plugin *and* Theme dependencies:
--------------------------------
We have found ourselves needing certain functionalities from (activated)
plugins for themes to work properly (modular code), specially w.r.t.
Custom Post Types: the CPT in a plugin, with some code to help use it,
while the display logic is in the theme itself.
I hereby propose extending the functionality to theme headers too.
Versioned dependencies are a must if we want to enable code sharing.
For a good example on what *definitively* works, look at Debian. We can
use the same format, too:
-- cpt-shared-3/cpt-shared-plugin.php --
{{{
/*
Plugin: cpt-shared
Version: 3
*/
}}}
-- cpt-foo-plugin-1.0/foo-plugin.php --
{{{
/*
Plugin: CPT FOO Functionality
Version: 1.0
Provides: cpt-foo
Depends: cpt-shared (>= 2)
*/
}}}
-- my-super-duper-theme/functions.php --
{{{
/*
Theme: My Super Duper Theme 1
Depends: cpt-foo (>= 1.0)
*/
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22316#comment:56>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list