[wp-trac] [WordPress Trac] #47093: Recovery mode email is not translated
WordPress Trac
noreply at wordpress.org
Wed May 1 17:58:38 UTC 2019
#47093: Recovery mode email is not translated
------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch servehappy | Focuses:
------------------------------------+---------------------
Comment (by TimothyBlynJacobs):
This happens if the fatal error occurs before `load_default_textdomain()`
is called.
I was able to fix this by adding a call to `load_default_textdomain` at
the top of `WP_Recovery_Mode_Email_Service::send_recovery_mode_email`. I
guess we'd need to check something like this? Not super familiar with the
potential ramifications.
{{{#!php
if ( ! isset( $GLOBALS['wp_locale'] ) ) {
load_default_textdomain();
}
}}}
Using `wp_load_translations_early` only works for me if I have `WPLANG`
set in `wp-config.php`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47093#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list