diff --git a/common-issues.md b/common-issues.md index 6e4e5796..cd56e01b 100644 --- a/common-issues.md +++ b/common-issues.md @@ -45,7 +45,7 @@ require_once(ABSPATH . 'wp-settings.php'); remains in the `wp-config.php` file, so if you've modified or moved it, put it back there. It gets matched by a regex when WP-CLI runs. -### PHP Fatal error: Call to undefined function \ +### PHP Fatal error: Call to undefined function `` Before WP-CLI can load `wp-settings.php`, it needs to know all of the constants defined in `wp-config.php` (database connection details and so on). Because WP-CLI doesn't want WordPress to load yet when it's [pulling the constants](https://github.com/wp-cli/wp-cli/blob/master/php/wp-cli.php#L22) out of `wp-config.php`, [it uses regex](https://github.com/wp-cli/wp-cli/blob/master/php/WP_CLI/Runner.php#L324) to strip the `require_once(ABSPATH . 'wp-settings.php');` statement.