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:
parent
da760d1ecf
commit
a6ec40d65d
|
@ -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(
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue