#45932 closed defect (bug) (invalid)
Call wp_load_translations_early in WP_Shutdown_Handler
| Reported by: | spacedmonkey | Owned by: | flixos90 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Site Health | Version: | 5.1 |
| Severity: | normal | Keywords: | servehappy has-patch |
| Cc: | Focuses: | multisite |
Description (last modified by )
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.
Attachments (1)
Change History (15)
This ticket was mentioned in Slack in #core-php by spacedmonkey. View the logs.
8 years ago
This ticket was mentioned in Slack in #core-php by schlessera. View the logs.
8 years ago
#6
@
8 years ago
Haven't looked in detail when this handler is called but if wp_load_translations_early() is available it should be used.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #44458