[wp-trac] [WordPress Trac] #16953: Allow symlinked plugins
WordPress Trac
noreply at wordpress.org
Tue Aug 20 14:23:56 UTC 2013
#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 dev-feedback |
------------------------------------+-----------------------------
Comment (by rmccue):
[http://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2013-08-20&sort=asc#m670205 Discussed on IRC with nacin], best
path forward looks to be creating a path cache.
I know exactly how to write the patch, but haven't the time yet. Patches
welcome if anyone does.
The approach I'd take is to create a new global (ick, I know, but it can
be edited on `plugins_loaded`) containing a map of `dirname( $plugin ) =>
dirname( realpath( $plugin ) )` in wp-settings.php, then changing
`plugin_basename` to use it. It's simple and it's fairly fast on load
(`realpath` is already hit in `include`, so the stat cache should fix
that). Bonus points for rolling the filter in as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16953#comment:71>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list