[wp-trac] [WordPress Trac] #12149: Filter for installed plugins in validate_plugin()
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 6 16:30:17 UTC 2010
#12149: Filter for installed plugins in validate_plugin()
----------------------------+-----------------------------------------------
Reporter: jfarthing84 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 2.9.1
Severity: normal | Keywords: dev-feedback
----------------------------+-----------------------------------------------
I believe that there should be a filter for the installed plugins list
generated by the get_plugins() function within the validate_plugin()
function.
My reason is that a plugin I am creating uses it's own "modules" that are
similar to plugins, or rather, plugins for a plugin. I could almost use
the native WP plugin functions with the filters already there, except for
getting the list of installed plugins, as my "modules" will be stored in a
folder within the plugin folder.
This one function inhibits the use of any of the native WP functions for
this situation because it is used by validate_plugin() which is used by
activate_plugin(). So, in my situation, I have to clone all these
functions, just to add to the list of installed functions.
This could all be avoided with a simple filter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12149>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list