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

WordPress Trac wp-trac at lists.automattic.com
Fri May 7 22:55:32 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 azaozz):

 I'm with @westi and @markjaquith on this. Our hooks API is flexible enough
 to handle this case perfectly. The patch in #13296 just adds a lot of code
 without offering significant improvements.

 Note that a priority can be set in the main plugin to run the custom
 action code first on "plugins_loaded" avoiding any possible collisions
 with the dependent plugins using the same hook:
 {{{
 function my_plugin_prefix_init() {
     do_action( 'my_plugin_prefix_init' );
 }
 add_action( 'plugins_loaded', 'my_plugin_prefix_init', -1 );
 }}}

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


More information about the wp-trac mailing list