Allow wp-config.php to be used without including wp-settings.php
|Reported by:||mastermind||Owned by:|
The way it is in WP now, wp-blog-header.php includes wp-config.php, and wp-config.php then includes wp-settings.php. This is unfortunate in situations where a script (e.g. an AJAX of a plugin) wants only the database constants, because it needs but a couple of database items. Today, if our mini-script would include wp-config.php, it would load the whole WP core and plugins, execute hooks, open dozens of files, etc.
I'd propose the following: Let wp-blog-header.php load wp-settings.php after loading wp-config.php, and allow wp-config.php to be used standalone.
Change History (17)
7 years ago
- Milestone 2.9 deleted
- Resolution set to wontfix
- Status changed from new to closed