From 3ce65a66bb1cd8335bc47778adff2f71cb73abc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Viemer=C3=B6?= Date: Wed, 15 Jan 2025 13:03:34 +0200 Subject: [PATCH] Host shouldn't include http:// --- src/Core_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core_Command.php b/src/Core_Command.php index 5bee2550..6f7add86 100644 --- a/src/Core_Command.php +++ b/src/Core_Command.php @@ -1316,7 +1316,7 @@ public function update_db( $args, $assoc_args ) { // WP upgrade expects `$_SERVER['HTTP_HOST']` to be set in `wp_guess_url()`, otherwise get PHP notice. if ( ! isset( $_SERVER['HTTP_HOST'] ) ) { - $_SERVER['HTTP_HOST'] = 'http://example.com'; + $_SERVER['HTTP_HOST'] = 'example.com'; } wp_upgrade();