mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 01:19:51 +01:00
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:
parent
e83f5a1a60
commit
5a8e44ccb8
@ -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 ) )
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user