[wp-trac] [WordPress Trac] #12149: Filter for installed plugins in validate_plugin()

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 24 01:36:58 UTC 2010


#12149: Filter for installed plugins in validate_plugin()
----------------------------+-----------------------------------------------
 Reporter:  jfarthing84     |       Owner:                        
     Type:  enhancement     |      Status:  new                   
 Priority:  normal          |   Milestone:  3.0                   
Component:  Administration  |     Version:  2.9.1                 
 Severity:  normal          |    Keywords:  dev-feedback has-patch
----------------------------+-----------------------------------------------

Comment(by nacin):

 get_plugins() also performs caching. I also personally think we should
 generally avoid hooks that can mess too much with the plugin activation
 process, especially considering the sandbox.

 That said, at the very least we can probably abstract out a good portion
 of get_dropins(), get_plugins(), and get_mu_plugins(), into a new
 directory-scanning function. If you want to try that, that could work. (I
 would also look at wp_get_active_and_valid_plugins() and
 wp_get_mu_plugins() as well.)

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


More information about the wp-trac mailing list