[wp-trac] [WordPress Trac] #13550: WP_PLUGIN_DIR doesn't detect symlinks
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 13 10:10:30 UTC 2010
#13550: WP_PLUGIN_DIR doesn't detect symlinks
---------------------------+------------------------------------------------
Reporter: acumensystems | Owner: westi
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: Plugins | Version: 3.0
Severity: minor | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Comment(by shallot):
To put this in terms of code, this is what I added after the
preg_replace() in wp-includes/plugin.php's plugin_basename()
<pre>
if (defined('WP_EXTRA_PLUGIN_DIR'))
$file = preg_replace('#^' . preg_quote(WP_EXTRA_PLUGIN_DIR, '#')
. '/#','',$file);
</pre>
Now our settings pages work fine.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13550#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list