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

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 6 13:34:11 UTC 2011


#16953: Allow symlinked plugins
------------------------------+-----------------------------
 Reporter:  scribu            |       Owner:  scribu
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  Future Release
Component:  Plugins           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------------

Comment (by ciantic):

 Yes, very annoying, it boils down to lack of feature in PHP, see
 [http://bugs.php.net/bug.php?id=46260 PHP bug 46260] (I actually believe
 best way to fix PHP bug is to create new constant like `__FILELINK__` to
 keep backwards compatibility). But getting ''that'' fixed anytime soon is
 not reality.

 @scribu, can you elaborate what kind of problems you encountered using
 plugins_url filter hack for symlinkked plugins? The problem on those
 `register_*_hook()` seems to be in `plugin_basename()`.

 Alternative for `plugins_url` filter that converts plugin realpath to WP
 plugin path is naturally to make all symlinked plugins to create their URL
 differently, e.g. using plugin `WPMU_PLUGIN_URL` and `WP_PLUGIN_URL`.

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


More information about the wp-trac mailing list