[wp-trac] [WordPress Trac] #5276: Allow wp-config.php to be used
without including wp-settings.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 29 10:30:38 GMT 2007
#5276: Allow wp-config.php to be used without including wp-settings.php
-------------------------+--------------------------------------------------
Reporter: mastermind | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.4
Severity: normal | Keywords: wp-config.php standalone
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/5276>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list