#3057 closed enhancement (wontfix)
No load wp-settings.php from wp-config.php
Reported by: | forceagainstsomething | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | 2.1 |
Component: | Administration | Keywords: | settings, config has-patch |
Focuses: | Cc: |
Description
Plugin developers may want to include the wp-config.php without loading wp-settings.php. Included is a patch to correct. Usage:
define('NOLOAD_WPSETTINGS', true);
include('wp-config.php');
Defining NOLOAD_WPSETTINGS tells WP to skip loading wp-settings.php.
Attachments (2)
Change History (10)
#1
@
18 years ago
Just realized in the patch I put the code below the Turn register globals off comment. Suppose that should be above it.
#2
@
17 years ago
- Keywords has-patch added
- Milestone set to 2.1
Updated the attached patch according to forceagainstsomething's suggestions.
#5
@
17 years ago
- Milestone changed from 2.3 to 2.4 (next)
- Priority changed from normal to low
Punting.
Can you provide an example of why a plugin author would want to do this?
#6
@
17 years ago
I actually do the same basic thing on a couple of sites I manage. It's just to keep the database config information in one file and so other pages non WP dependent can access just the database connection information. It's a good idea, but I don't think it's a must, as the use will be very limited.
No load wp-settings patch