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
This commit is contained in:
Felix Arntz 2019-01-16 13:34:52 +00:00
parent da760d1ecf
commit a6ec40d65d
2 changed files with 2 additions and 4 deletions

View File

@ -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(

View File

@ -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.