You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are use-cases when WP_HOME and WP_SITEURL need to be derived from an alternative header other than HTTP_HOST. These constants are already being defined in wp-config-pantheon.php. Defining these constants before or after include 'wp-config-pantheon.php'; in wp-config.php will cause PHP notice. Since wp-config-pantheon.php is upstream maintained, we do not recommend modifying the file due to potential merge conflict in the future. Including a modified copy of wp-config-pantheon.php is what we suggest but any future update will require user to manually reconcile the files.
Proposed solution: Make the define statement in wp-config-pantheon.php conditional.
The text was updated successfully, but these errors were encountered:
marfillaster
added a commit
to marfillaster/WordPress
that referenced
this issue
Feb 3, 2023
pwtyler
changed the title
Defining WP_HOME and WP_SITEURL in wp-config.php causes PHP notice
[CMSP-643] Defining WP_HOME and WP_SITEURL in wp-config.php causes PHP notice
Aug 30, 2023
pwtyler
pushed a commit
to marfillaster/WordPress
that referenced
this issue
Aug 30, 2023
There are use-cases when
WP_HOME
andWP_SITEURL
need to be derived from an alternative header other thanHTTP_HOST
. These constants are already being defined inwp-config-pantheon.php
. Defining these constants before or afterinclude 'wp-config-pantheon.php';
inwp-config.php
will cause PHP notice. Sincewp-config-pantheon.php
is upstream maintained, we do not recommend modifying the file due to potential merge conflict in the future. Including a modified copy ofwp-config-pantheon.php
is what we suggest but any future update will require user to manually reconcile the files.Proposed solution: Make the define statement in
wp-config-pantheon.php
conditional.The text was updated successfully, but these errors were encountered: