This seems like its a new bug as everything was working prior to my update.
It appears that the Host for the database in local is being pulled in via some sort of regex and not the actual DB_HOST
constant.
- To work with multiple servers, I pull in a local-config file at the top of my wp-config that defines all the constants for the current server (wp-config is used for shared constants and pulling in settings). The
DB_HOST
(and otherDB_*
) are now being ignored in the local-config file. - If you have a comment that looks like the ending of a constant definition, the
DB_HOST
(and otherDB_*
constants) will include that comment. e.g.:
define( 'DB_HOST', 'localhost' ); // '192.168.0.1' )
;
has the Host in Local defined as
localhost' ); // '192.168.0.1