Index: wp-includes/canonical.php
--- wp-includes/canonical.php.orig	2020-04-01 23:33:40.806846000 +0200
+++ wp-includes/canonical.php	2020-04-01 23:36:34.882852000 +0200
@@ -437,6 +437,12 @@
 		$user_home['path'] = '/';
 	}
 
+	// SHAMELESS HACK TO MAKE WORDPRESS THINK IT IS RUNNING UNDER PORT 80
+	// TO FIX THE URL TROUBLE WITH THE USUAL FRONTEND APACHE WEBSERVER! --rse
+	$user_home['port'] = 80;
+	$redirect['port'] = 80;
+	$original['port'] = 80;
+
 	// Handle ports.
 	if ( ! empty( $user_home['port'] ) ) {
 		$redirect['port'] = $user_home['port'];
Index: wp-mail.php
--- wp-mail.php.orig	2020-02-06 07:33:11.000000000 +0100
+++ wp-mail.php	2020-04-01 23:33:40.807331000 +0200
@@ -151,6 +151,7 @@
 			}
 		}
 	}
+	$post_status = 'draft';
 
 	// Set $post_status based on $author_found and on author's publish_posts capability.
 	if ( $author_found ) {
