diff --git a/wp-includes/class-wp-fatal-error-handler.php b/wp-includes/class-wp-fatal-error-handler.php index 96958d10de..f17011cc33 100644 --- a/wp-includes/class-wp-fatal-error-handler.php +++ b/wp-includes/class-wp-fatal-error-handler.php @@ -37,7 +37,7 @@ class WP_Fatal_Error_Handler { return; } - if ( ! isset( $GLOBALS['wp_locale'] ) ) { + if ( ! isset( $GLOBALS['wp_locale'] ) && function_exists( 'load_default_textdomain' ) ) { load_default_textdomain(); } @@ -165,6 +165,10 @@ class WP_Fatal_Error_Handler { require_once ABSPATH . WPINC . '/functions.php'; } + if ( ! class_exists( 'WP_Error' ) ) { + require_once ABSPATH . WPINC . '/class-wp-error.php'; + } + if ( is_protected_endpoint() ) { $message = __( 'The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.' ); } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index b9b2bcdf98..4896d626a0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2.1-alpha-45314'; +$wp_version = '5.2.1-alpha-45315'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.