[wp-trac] [WordPress Trac] #16953: Allow symlinked plugins

WordPress Trac noreply at wordpress.org
Sun Apr 6 03:57:30 UTC 2014


#16953: Allow symlinked plugins
-------------------------+-----------------------
 Reporter:  scribu       |       Owner:  rmccue
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.9
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------

Comment (by rmccue):

 Also worth mentioning, if you use a pattern like `mu-plugins/x/x.php` with
 a `mu-plugins/loader.php` file, you should add the following to your
 loader file:

 {{{
 $plugins = array(
         'my-mu-plugin/my-mu-plugin.php',
 );
 foreach ( $plugins as $plugin ) {
         $path = dirname( __FILE__ ) . '/' . $plugin;

         // Add this line to ensure mu-plugins subdirectories can be
 symlinked
         wp_register_plugin_realpath( $path );

         include $path;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/16953#comment:120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list