[wp-trac] [WordPress Trac] #11308: Handling plugin dependencies

WordPress Trac wp-trac at lists.automattic.com
Wed May 12 17:22:29 UTC 2010


#11308: Handling plugin dependencies
-------------------------+--------------------------------------------------
 Reporter:  apeatling    |        Owner:  westi     
     Type:  enhancement  |       Status:  closed    
 Priority:  normal       |    Milestone:            
Component:  Plugins      |      Version:            
 Severity:  normal       |   Resolution:  worksforme
 Keywords:  plugins      |  
-------------------------+--------------------------------------------------

Comment(by shidouhikari):

 Yeah I'll do that when I release my framework, but still users won't do
 it, and built-in install also doesn't support it.

 And like I said, core must support it *before* it's used, or frameworks
 won't be popular at all. WP community is used to see plugins as complete
 solution packages, since there's no native support and no standard for
 plugins dependances, authors simply aren't encouraged to do so.

 As I said, it'd be great to have Community Plugins providing frameworks
 that other plugins can enhance, as jquery does for exemple. Core plugin
 adds features and a basic UI, then another plugin adds AJAX UI, and other
 one enhances 2 or 3 features.

 For now, each dependant plugin could add an action to plugins_loaded -10,
 and in this action test if framework is available, and then include its
 files, or add another action reporting to user that the framework isn't
 available and the consequences. Then, when plugins_loaded 10 comes up they
 will all have finished loading. And in init they start interacting and
 hooking.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11308#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list