[wp-trac] [WordPress Trac] #29688: Stop editing line in default config not explicit enough
WordPress Trac
noreply at wordpress.org
Thu Jan 12 00:24:03 UTC 2017
#29688: Stop editing line in default config not explicit enough
----------------------------+------------------------------
Reporter: kirrus | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 0.71
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+------------------------------
Comment (by diddledan):
29688.1.diff allows older, unmodified, wp-config.php files to remain
unmodified. I've wrapped the require of wp-settings.php in wp-load.php
with a check for the presence of a constant that is only set in wp-
settings.php so that if wp-config.php does the require as is normal
currently then we do not attempt to do it automatically in wp-load.php. If
the require hasn't been executed by wp-config.php then the constant will
be undefined and we can continue with the new method.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29688#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list