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

WordPress Trac noreply at wordpress.org
Sun Mar 30 23:41:32 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:  has-patch dev-feedback 3.9-early  |     Focuses:
----------------------------------------------+-----------------------
Changes (by scribu):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 I have a symlink that looks like this:

     wp-content/mu-plugins/p2p-debug -> wp-content/plugins/posts-to-
 posts/debug.php

 `$wp_plugin_paths` ends up looking like this:

 {{{
 [
   'wp-content/mu-plugins/' => 'wp-content/plugins/posts-to-posts'
 ]
 }}}

 This breaks all calls to `plugins_url()` inside the Posts 2 Posts plugin,
 but I'm assuming that most plugins don't have helper files like that.

 What worries me is that all symlinks inside mu-plugins end up pointing to
 the directory of the first symlink. That doesn't seem sane.

 So, I propose, we remove the `wp_register_plugin_realpath( $mu_plugin );`
 line.

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


More information about the wp-trac mailing list