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:
parent
00726f0963
commit
72e86aacfb
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user