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

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 20 11:09:26 UTC 2010


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

Comment(by apeatling):

 I agree with what you are saying, many of the problems can be fixed by
 plugin developers themselves. I still feel this is a good idea on its most
 simple level. I don't think it should be concerned with version numbers or
 guids, it will just look to see if a matching plugin exists and loads it
 first. The rest is up to the user.

 There is still the problem of load order which can't be fixed by any of
 your suggestions. If I want to make sure that BuddyPress is loaded before
 my plugin, but only if BuddyPress is activated, how can I do that? Unless
 I'm missing something, currently the only way to be sure of this is to
 name my plugin file alphabetically after 'b' so it is loaded after.

 If the "Requires:" line is not an ideal solution, It would be nice to at
 least be able to do something simple like this:

 {{{
 <?php if ( is_plugin_active( PLUGIN ) ) { require_once( PLUGIN ); } ?>
 }}}

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


More information about the wp-trac mailing list