[wp-trac] [WordPress Trac] #37199: Strengthen language in wp-config-sample.php
WordPress Trac
noreply at wordpress.org
Thu May 20 13:31:42 UTC 2021
#37199: Strengthen language in wp-config-sample.php
------------------------------+---------------------
Reporter: kraftbj | Owner: jorbin
Type: enhancement | Status: closed
Priority: low | Milestone: 5.8
Component: Bootstrap/Load | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Comment (by schlessera):
Thanks for the ping, @swissspidy!
There are probably more integrations that this will break apart from WP-
CLI, as most managed hosting platforms customize the config file in some
form or other.
For WP-CLI I can plan a more flexible anchor pattern to take this into
account, but I wonder whether it wouldn't be a good opportunity to rethink
the configuration file in general, if we're already breaking existing
integrations anyway...
For example, how about allowing for a configuration file to only contain
configuration, and not be a needed part of the loading process (i.e. right
now there is a hard require of `wp-settings.php` directly in the config
file)?
So, WP could for example pull in the configuration file, and then, if WP
was not already loaded in the next line of code, load `wp-settings.php`
from there. This way, the `wp-config.php` file would actually be what its
names claims to be.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37199#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list