[wp-trac] [WordPress Trac] #61108: Pass `$locale` to the `load_translation_file` filter

WordPress Trac noreply at wordpress.org
Tue Apr 30 22:08:32 UTC 2024


#61108: Pass `$locale` to the `load_translation_file` filter
-------------------------+-------------------------
 Reporter:  johnbillion  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  6.6
Component:  I18N         |    Version:  6.5
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:               |
-------------------------+-------------------------
 The `load_translation_file` filter was introduced in 6.5. It would be
 useful to pass it the `$locale` variable as a parameter, otherwise
 anything using the filter needs to recalculate the locale again by calling
 `determine_locale()`.

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


More information about the wp-trac mailing list