WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-SpamFree] Unable to install due to different location of wp-content (4 posts)

  1. mm1975
    Member
    Posted 5 years ago #

    I changed the default location of wp-content directory through the configuration of these lines in wp-config.php:

    define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/another-path' );
    define( 'WP_CONTENT_URL', 'http://blog/another-path');

    But this plugin has the path "/wp-content" hardcoded. :(

  2. whooami
    Member
    Posted 5 years ago #

    so change the hardcoded path.. whats the problem with that???

  3. mm1975
    Member
    Posted 5 years ago #

    No problems until a new version of the plugin is released. In fact I already did this for testing, but I don't want to mess with all the lines of code every time.

    If we have a way to define a constant with this path's value, why do not use this constant inside the plugin instead of hardcode it?

  4. WebGeek
    Member
    Posted 5 years ago #

    Version 1.9.8.2 added the feature you are looking for. I upgraded the code to be compliant with the new customization features in WP 2.6 and up.

Topic Closed

This topic has been closed to new replies.

About this Topic