[wp-hackers] plugins_url function
phillip.lord at newcastle.ac.uk
Tue Dec 13 11:40:19 UTC 2011
my kcite plugin (http://wordpress.org/extend/plugins/kcite/). In
general, all seemed to be working well till I tried to install it on my
own blog. In general, I have wordpress set up as you might expect
However, on my own blog I use a structure like so...
wordpress/wp-content/plugins/kcite symlink'd to
This fails rather badly as this call
plugins_url( "kcite-citeproc/kcite.js",__FILE__ )
which should be interpreted as
is actually interpreted as
That is, the symlink is unwound. Obviously, this isn't ideal, if for no
other reason that it exposes myusername to the world. The correct URL
does actually resolve fine.
Am I missing something? I can replace the whole thing with
plugins_url( "kcite/kcite-citeproc/kcite.js" )
which does seem to work, but will fail for some configurations. So, I'd
like a more ideal solution.
More information about the wp-hackers