[wp-trac] [WordPress Trac] #16953: Allow symlinked plugins
WordPress Trac
noreply at wordpress.org
Sun Feb 10 20:19:04 UTC 2013
#16953: Allow symlinked plugins
------------------------------------+-----------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Plugins | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Comment (by MikeSchinkel):
Replying to [comment:42 scribu]:
> Re [attachment:symlinked_plugins.diff]: the check you added to
plugin_url() should be moved to plugin_basename(), since that's the more
general function (and also the one that doesn't have a filter).
Originally I didn't put in `plugin_basename()` because it looked like that
would not have worked but I just tested and you are correct, it works. I
also tested it with a symlinked plugin where the virtual directory was
different than the real directory and it still worked correctly, i.e. `my-
plugin-dev/my-plugin.php` vs. `my-plugin/my-plugin.php`:
{{{
Virtual Path => /Users/my-user/Site/my-site/wp-content/plugins/my-plugin-
dev/my-plugin.php
Real Path => /Users/my-user/Plugins/my-plugin/my-plugin.php
}}}
Attached is a new patch with the check moved to `plugins_url()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16953#comment:43>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list