Allow symlinked plugins — at Version 3
|Reported by:||scribu||Owned by:||scribu|
Description (last modified by scribu)
There are many scenarios where one would like to have a plugin's folder symlinked to another location.
A couple of these scenarios are described in #13550.
However, when using symlinks, code such as this fails:
plugins_url( 'script.js', __FILE__ );
This happens because __FILE__ resolves to the real path, which confuses plugin_basename().
The most simple and most flexible solution is to add a filter to plugin_basename(), leaving individual devs to handle symlinks, depending on their environment.
Change History (5)
- Keywords has-patch added
- Owner set to scribu
- Status changed from new to accepted
- Description modified (diff)
- Keywords commit added
- Milestone changed from Awaiting Review to 3.2