[wp-trac] [WordPress Trac] #17787: A bunch of filters and minor fixes

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 14 07:31:58 UTC 2011


#17787: A bunch of filters and minor fixes
-------------------------+------------------------------
 Reporter:  5ubliminal   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by 5ubliminal):

 I added my final change. Right before mu-plugins are loaded WP looks for a
 wp-plugins.php file in ABSPATH or ABSPATH/../ (parent). Just like it does
 for wp-config.php.

 In that file I am able to register filter to add custom (MU/regular)
 plugins to the loading blog. My main goal is to add custom folders for a
 multi wp-config.php installation that gives access to custom plugins path.

 Example:

 Blog x.com, y.com and z.com are installed in same installation. Wp-
 config.php detects name from domain and loads wp-x.com-config.php and so
 on. Then I have WP_PLUGINS_DIR and WPMU_PLUGINS_DIR with the global
 plugins. I want to add two more folders (still implementing but those
 filters are vital) with plugins designed for blogs. So a blog could have
 WPMU_LOCAL_PLUGINS_DIR added and listed along.

 I have something like this but I would like it integrated in your plugin
 manager which is better and provides an unitary experience.

 Nevertheless, those filters hurt nobody but allow those who really mold
 WordPress by their needs to take full control.

 Thanks, hope it makes some sense.

 PS: I mu-plugins, only base directory php files are loaded. I have a
 single base directory file that loads plugins located in level 1 folders.
 With these filters, not only do I load those plugins but I can actually
 make them visible in the MustUse list which I could not.

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


More information about the wp-trac mailing list