[wp-trac] [WordPress Trac] #45932: Call wp_load_translations_early in WP_Shutdown_Handler

WordPress Trac noreply at wordpress.org
Fri Jan 11 00:49:15 UTC 2019


#45932: Call wp_load_translations_early in WP_Shutdown_Handler
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:  (none)
  spacedmonkey           |
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:               |    Version:  trunk
  Bootstrap/Load         |   Keywords:  needs-patch needs-testing
 Severity:  normal       |  servehappy
  Focuses:  multisite    |
-------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45932>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list