diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 87a0ec803..c29dd740c 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -26,7 +26,7 @@ If you do not want to join this site please ignore this email. This invitation will expire in a few days. Please click the following link to activate your user account: -%%s' ), get_bloginfo('name'), site_url(), esc_html( $_REQUEST[ 'role' ] ) ); +%%s' ), get_bloginfo('name'), home_url(), esc_html( $_REQUEST[ 'role' ] ) ); } add_filter( 'wpmu_signup_user_notification_email', 'admin_created_user_email' ); diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 09acdedf2..2466de9fc 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1734,9 +1734,9 @@ function maybe_add_existing_user_to_blog() { delete_option( 'new_user_' . $key ); if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) - wp_die( sprintf(__('An error occurred adding you to this site. Back to the homepage.'), site_url() ) ); + wp_die( sprintf(__('An error occurred adding you to this site. Back to the homepage.'), home_url() ) ); - wp_die( sprintf(__('You have been added to this site. Please visit the homepage or log in using your username and password.'), site_url(), admin_url() ), __('Success') ); + wp_die( sprintf(__('You have been added to this site. Please visit the homepage or log in using your username and password.'), home_url(), admin_url() ), __('Success') ); } /**