From 493c7d259db6a6b15f97e1952f877482dcff20d7 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 7 Sep 2016 21:20:40 +0800 Subject: [PATCH] Fix random email generation on registration process --- core/um-actions-register.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/um-actions-register.php b/core/um-actions-register.php index fca76540..f5f0b2f7 100644 --- a/core/um-actions-register.php +++ b/core/um-actions-register.php @@ -84,7 +84,8 @@ if( ! isset( $user_email ) ) { - $user_email = 'nobody' . $unique_userID . '@' . get_bloginfo('name'); + $site_url = @$_SERVER['SERVER_NAME']; + $user_email = 'nobody' . $unique_userID . '@' . $site_url; }