WordPress.org

Ready to get started?Download WordPress

Forums

PLUGINDIR should be properly interpreted if absolute path (1 post)

  1. rabe
    Member
    Posted 7 years ago #

    Hi there,

    I'm using Debian's version 2.1.2-1 of WordPress, and I have several different WordPress sites using Debian's config mechanism (files config-<domain>.php in /etc/wordpress/).

    I want my users to be able to have a plugins directory for their own, so I naively defined PLUGINDIR in a config-<domain>.php file and set it to an absolute path, like /home/<user>/www/wp/plugins. However, whereever WP uses PLUGINDIR, it prepends ABSPATH to it, regardless whether PLUGINDIR is a relative or absolute path.

    So my request would be whereever PLUGINDIR is used, first check whether it's absolute, and in that case use the value as specified. Only if it's a relative path, prepend ABSDIR to it.

    Another request would be to introduce a define for the themes directory, so that I am able to offer each user a separate themes directory as well.

    Thanks!

    Regards,

    Ralf

Topic Closed

This topic has been closed to new replies.

About this Topic