From 4128f62c05622e201b82fc7be67d99618236382d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Apr 2019 18:13:09 +0000 Subject: [PATCH] Bootstrap/Load: Modify the fatal error template to indicate to the user that they can check the admin email address for further instructions. Props spacedmonkey, TimothyBlynJacobs. Fixes #46950. git-svn-id: https://develop.svn.wordpress.org/trunk@45263 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-fatal-error-handler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-fatal-error-handler.php b/src/wp-includes/class-wp-fatal-error-handler.php index f041e19dd5..458f674104 100644 --- a/src/wp-includes/class-wp-fatal-error-handler.php +++ b/src/wp-includes/class-wp-fatal-error-handler.php @@ -161,7 +161,11 @@ class WP_Fatal_Error_Handler { require_once ABSPATH . WPINC . '/functions.php'; } - $message = __( 'The site is experiencing technical difficulties.' ); + if ( is_protected_endpoint() ) { + $message = __( 'The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.' ); + } else { + $message = __( 'The site is experiencing technical difficulties.' ); + } $args = array( 'response' => 500,