Support » Requests and Feedback » Configuration file

  • Hello everyone..
    Wordpress config file should be a config file not some sort of bootstrap loader:

    require_once(ABSPATH . 'wp-settings.php');

    This line should not be there then it would be possible to just include this file in plugin or some other script and get wordpress database settings without having to include loads of useless files and code!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Why would someone need to get the database settings for a plugin?

    For example to use native mysql functions?
    Not to include loads of useless code if part of a plugin works as a service (is independent) and still has to share wordpress options?

    There is a lot of overhead when requiring wp-load.php just to retrieve a single setting from the database.

    Config file should be a config file. To store settings, not to load another files. That kind of dependency should not occur.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Configuration file’ is closed to new replies.