diff --git a/src/wp-includes/class-wp-fatal-error-handler.php b/src/wp-includes/class-wp-fatal-error-handler.php
index 96958d10de..f17011cc33 100644
a
|
b
|
class WP_Fatal_Error_Handler { |
37 | 37 | return; |
38 | 38 | } |
39 | 39 | |
40 | | if ( ! isset( $GLOBALS['wp_locale'] ) ) { |
| 40 | if ( ! isset( $GLOBALS['wp_locale'] ) && function_exists( 'load_default_textdomain' ) ) { |
41 | 41 | load_default_textdomain(); |
42 | 42 | } |
43 | 43 | |
… |
… |
class WP_Fatal_Error_Handler { |
165 | 165 | require_once ABSPATH . WPINC . '/functions.php'; |
166 | 166 | } |
167 | 167 | |
| 168 | if ( ! class_exists( 'WP_Error' ) ) { |
| 169 | require_once ABSPATH . WPINC . '/class-wp-error.php'; |
| 170 | } |
| 171 | |
168 | 172 | if ( is_protected_endpoint() ) { |
169 | 173 | $message = __( 'The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.' ); |
170 | 174 | } else { |