#45932 closed defect (bug) (invalid)
Call wp_load_translations_early in WP_Shutdown_Handler
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1 |
Component: | Site Health | Keywords: | servehappy has-patch |
Focuses: | multisite | Cc: |
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.
6 years ago
This ticket was mentioned in Slack in #core-php by schlessera. View the logs.
6 years ago
#5
@
6 years ago
- Milestone changed from Awaiting Review to 5.1
Adding to 5.1 milestone for consideration.
#6
@
6 years ago
Haven't looked in detail when this handler is called but if wp_load_translations_early()
is available it should be used.
#7
@
6 years ago
- Keywords needs-testing removed
- Owner set to flixos90
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.
Related: #44458