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

WordPress Trac noreply at wordpress.org
Sun Apr 6 03:53:44 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):

 Added patch that uses scribu's change to remove mu-plugins registration,
 and also ignore files living in `WP_PLUGIN_DIR` and `WPMU_PLUGIN_DIR` from
 being registered.

 `wp_plugin_register_realpath` now returns a boolean that indicates whether
 the path could be registered, for those of you using it in your own
 plugins.

 The following now work correctly:

 * `mu-plugins/y.php -> plugins/x/y.php`
 * `plugins/y.php -> plugins/x/y.php`

 Confirmed that the following work:

 * `plugins/x/ -> /arbitrary/path/x/`
 * `plugins/ -> plugins-x/`
 * `plugins/ -> plugins-x/` and `plugins-x/y/ -> /arbitrary/path/y`

 Any other paths we need to handle?

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


More information about the wp-trac mailing list