[wp-trac] [WordPress Trac] #61108: Pass `$locale` to the `load_translation_file` filter
WordPress Trac
noreply at wordpress.org
Sat May 4 17:26:11 UTC 2024
#61108: Pass `$locale` to the `load_translation_file` filter
---------------------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.6
Component: I18N | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses:
---------------------------------------------+--------------------------
Changes (by johnbillion):
* owner: (none) => johnbillion
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"58095" 58095]:
{{{
#!CommitTicketReference repository="" revision="58095"
I18N: Pass the `$locale` variable to the `load_translation_file` filter.
This avoids the need for the locale to be recalculated by code that hooks
into this filter.
Props swissspidy, mukesh27, johnbillion
Fixes #61108
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61108#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list