[wp-hackers] plugins_url function
Phillip Lord
phillip.lord at newcastle.ac.uk
Wed Dec 14 15:16:52 UTC 2011
Otto <otto at ottodestruct.com> writes:
>> Okay, that's not ideal for me. In practice, I think it's easier to
>> unwind the symlinks -- or just turn them around, so that the real
>> directory is under wp-content/plugins then I symlink to this for ease.
>>
>> Glad it wasn't just me though:-)
>
> Definitely a PHP issue, BTW.
>
> https://bugs.php.net/bug.php?id=46260
>
> Sometimes people have been able to workaround this by using
> $_SERVER["SCRIPT_FILENAME"] instead of __FILE__.
I'd rather not write a workaround into my plugin which is specific for
my installation, though. It might not work when others install my
plugin. It's all a bit unfortunate. I agree with the bug report, though;
it does seem a problem with PHP. I don't think it's good behavior.
Phil
More information about the wp-hackers
mailing list