From a6ec40d65d538cf74cd3d5050fb289418ef972a8 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 16 Jan 2019 13:34:52 +0000 Subject: [PATCH] Bootstrap/Load: Use `wp_load_translations_early()` when Translation API is not yet loaded. Props spacedmonkey. Fixes #45932. See #44458. Built from https://develop.svn.wordpress.org/trunk@44622 git-svn-id: http://core.svn.wordpress.org/trunk@44453 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-shutdown-handler.php | 4 +--- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-shutdown-handler.php b/wp-includes/class-wp-shutdown-handler.php index e22038f870..4761393757 100644 --- a/wp-includes/class-wp-shutdown-handler.php +++ b/wp-includes/class-wp-shutdown-handler.php @@ -141,9 +141,7 @@ class WP_Shutdown_Handler { */ protected function get_error_message_markup() { if ( ! function_exists( '__' ) ) { - function __( $text ) { - return $text; - } + wp_load_translations_early(); } $message = sprintf( diff --git a/wp-includes/version.php b/wp-includes/version.php index ab93a34911..9e51b70726 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44621'; +$wp_version = '5.1-beta1-44622'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.