[wp-trac] [WordPress Trac] #5276: Allow wp-config.php to be used without including wp-settings.php

WordPress Trac noreply at wordpress.org
Mon Sep 8 22:35:29 UTC 2025


#5276: Allow wp-config.php to be used without including wp-settings.php
------------------------------------------------+----------------------
 Reporter:  mastermind                          |       Owner:  (none)
     Type:  enhancement                         |      Status:  closed
 Priority:  normal                              |   Milestone:
Component:  General                             |     Version:  2.5
 Severity:  normal                              |  Resolution:  wontfix
 Keywords:  wp-config.php standalone has-patch  |     Focuses:
------------------------------------------------+----------------------
Changes (by jorbin):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 Including wp-settings.php from wp-config.php remains the intentional
 behavior and a behavior that sites are relying upon, no matter if it's the
 behavior that would be desired now. As @Viper007Bond put it

 > there are countless plugins and scripts that rely on including wp-
 config.php to kickstart WordPress. Not saying it'd be a bad thing if we
 changed it, just saying it'd be a breaker.

 In order to not break websites, I am re-closing this ticket as wontfix.

 You are welcome to place a config file anywhere you want for your
 installation and then include it from wp-config.php if you are interested
 in having the db values somewhere that can be included for non-wp things.
 You can also use env variables or some other method.

 As a reminder, comments can continue to be made on closed tickets.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/5276#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list