Bootstrap/Load: Use `wp_load_translations_early()` when Translation API is not yet loaded.

Props spacedmonkey.
Fixes #45932. See #44458.


git-svn-id: https://develop.svn.wordpress.org/trunk@44622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2019-01-16 13:33:56 +00:00
parent 00726f0963
commit 72e86aacfb
1 changed files with 1 additions and 3 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(