I18N: Add missing variable in string replacement.

Ensures the preferred file name for lookup has the correct extension.

Follow-up to [57337].
See #59656.

git-svn-id: https://develop.svn.wordpress.org/trunk@57338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2024-01-23 14:01:59 +00:00
parent e83f5a1a60
commit 5a8e44ccb8

View File

@ -821,7 +821,7 @@ function load_textdomain( $domain, $mofile, $locale = null ) {
if ( 'mo' !== $preferred_format ) {
array_unshift(
$translation_files,
substr_replace( $mofile, '.l10n.', - strlen( $preferred_format ) )
substr_replace( $mofile, ".l10n.$preferred_format", - strlen( $preferred_format ) )
);
}