WordPress.org

Make WordPress Core

Changeset 44622


Ignore:
Timestamp:
01/16/2019 01:33:56 PM (13 months ago)
Author:
flixos90
Message:

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

Props spacedmonkey.
Fixes #45932. See #44458.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-shutdown-handler.php

    r44524 r44622  
    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
Note: See TracChangeset for help on using the changeset viewer.