Skip to content

Commit 4f64cb6

Browse files
author
flixos90
committed
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
1 parent 7753823 commit 4f64cb6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

wp-includes/class-wp-shutdown-handler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ protected function display_error_template() {
141141
*/
142142
protected function get_error_message_markup() {
143143
if ( ! function_exists( '__' ) ) {
144-
function __( $text ) {
145-
return $text;
146-
}
144+
wp_load_translations_early();
147145
}
148146

149147
$message = sprintf(

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @global string $wp_version
1515
*/
16-
$wp_version = '5.1-beta1-44621';
16+
$wp_version = '5.1-beta1-44622';
1717

1818
/**
1919
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)