Best way to include wp-config.php
The best way is to not do that. There’s no need for a plugin file to ever include the wp-config.php. You’re doing it backwards. WordPress loads plugins. Plugins don’t load WordPress.
The best way is to not do that. There’s no need for a plugin file to ever include the wp-config.php. You’re doing it backwards. WordPress loads plugins. Plugins don’t load WordPress.
Short answer: yes The answer to this question is yes and to say otherwise is probably irresponsible. Long answer: a real-world example Allow me to provide a very real example, from my very real server, where moving wp-config.php outside the web root specifically prevented its contents from being captured. The bug: Take a look at … Read more