Hi,
On Thu, 30 Aug 2012, Oskar Liljeblad wrote:
> > Given the above, I believe that there should be no problems. Please check
> > that you have a correct version of /usr/share/wordpress/wp-config.php.
>
> Looking at the bundled plugin, akismet, I see in
> /usr/share/wordpress/wp-content/plugins/akismet/admin.php at least one
> plugin_basename(__FILE__).
>
> Wouldn't this cause a problem because
>
> plugin_basename("/usr/share/wordpress/wp-content/plugins/akismet/admin.php")
>
> with
>
> WP_PLUGIN_DIR = "/var/lib/wordpress/wp-content/plugins"
>
> would return
>
> "/usr/share/wordpress/wp-content/plugins/akismet/admin.php"
>
> And that is not a basename - it's an absolute path...
Right, it looks like we have to enhance plugin_basename() to be aware of the
two possible locations of plugins. :-|
I wonder if there are other similar pitfalls with this design choice.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]