Database Host definition is funky

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.

  1. 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 other DB_*) are now being ignored in the local-config file.
  2. If you have a comment that looks like the ending of a constant definition, the DB_HOST (and other DB_* 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

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.