[wp-trac] [WordPress Trac] #45932: Call wp_load_translations_early in WP_Shutdown_Handler
WordPress Trac
noreply at wordpress.org
Fri Jan 11 00:50:07 UTC 2019
#45932: Call wp_load_translations_early in WP_Shutdown_Handler
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch needs-testing | Focuses: multisite
servehappy |
-------------------------------------------------+-------------------------
Old description:
> It a PHP error handles extremely early in the bootstrap process, say in
> the wp-config.ph file, the WP_Shutdown_Handler will display an error
> message. This error message is run through the __ translation functions,
> but as the functions do not exist yet, these string fail to translated.
> Other parts of core, like wp-db class call the
> `wp_load_translations_early` function to fix this issue.
New description:
It a PHP error handles extremely early in the bootstrap process, say in
the wp-config.ph file, the WP_Shutdown_Handler will display an error
message. This error message is run through the `__` translation functions,
but as the functions do not exist yet, these string fail to translated.
Other parts of core, like wp-db class call the
`wp_load_translations_early` function to fix this issue.
--
Comment (by spacedmonkey):
Related: #44458
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45932#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list