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

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 8 03:10:36 UTC 2012


#16953: Allow symlinked plugins
-------------------------+-----------------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Future Release
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------
Changes (by mitchoyoshitaka):

 * cc: mitcho@… (added)


Comment:

 Patching up `plugin_basename()` (or allowing for that patching) isn't the
 only issue here; symlinked files will show up in the plugins listing in
 `wp-admin`, but symlinked directories are not. I just attached a patch
 which also touches `get_plugins()` to support this.

 My fix to `plugin_basename()` is also a little more robust, but perhaps
 more overhead than wanted. I hope this patch is helpful for others.

 In the mean time, if this functionality should come as a plugin, scribu's
 `pre_plugin_basename` isn't the only hook needed; a filter in
 `get_plugins()` will also be necessary. If these filters are added, I'd be
 happy to release a "Symlink Plugins Support" plugin.

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


More information about the wp-trac mailing list