From 21e4226f1f92ce480c779effe6924487de7c0032 Mon Sep 17 00:00:00 2001 From: Muhibul Haque <142894870+devmuhib009@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:22:13 +0600 Subject: [PATCH] Common Issues Title Fix Fixing the issue #495 --- common-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.