4 ms·
Excluding localhost and some obvious cases where the values are in a local config file still leaves around 111,000: https://github.com/search?p=1&q=filename%3A
by mattgibson 11y ago
Excluding localhost and some obvious cases where the values are in a local config file still leaves around 111,000:
https://github.com/search?p=1&q=filename%3Awp-config.php+DB_HOST++NOT+localhost+NOT+127.0.0.1+NOT+getenv%28%27DB_HOST%27%29+NOT+%24_ENV%5B%27DB_HOST%27%5D+NOT+%24env%5B%27db_host%27%5D&ref=searchresults&type=Code&utf8=%E2%9C%93 https://github.com/search?p=1&q=filename%3Awp-config.php+DB_...
- sarciszewski 11y agoExcluding localhost will exclude a lot of legitimate installs.
- austenallred 11y agoMost wordpress devs support multiple environments in their .wpadmin (dev -> localhost, prod -> some server). So this is creating a lot of false negatives.
- onion2k 11y agolocalhost in the case of Wordpress just means the database is running on the same machine as the web server. Practically every WP instance is set up that way.
- panopticon 11y ago> localhost in the case of Wordpress Uh, the concept of localhost is not unique to Wordpress in the slightest.
- erikb 11y agoThat's not what he meant. What he meant was reading that the database is on localhost doesn't mean it's a development system. Many production instances of Wordpress run the database on the same host. Therefore localhost can also mean production. That might not be true for other services, but for Wordpress that's common. This is what he meant.
- bdcravens 11y agoWhich would be 99.99926% :-)