From a40f2f75550401cb08c33db88596b3d5bb5e1774 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 23 Jan 2024 14:03:10 +0000 Subject: [PATCH] I18N: Add missing variable in string replacement. Ensures the preferred file name for lookup has the correct extension. Follow-up to [57337]. See #59656. Built from https://develop.svn.wordpress.org/trunk@57338 git-svn-id: http://core.svn.wordpress.org/trunk@56844 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/l10n.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 4f3ec8bfed..1923c8c2a2 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -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 ) ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 20687651cb..10606651d3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57337'; +$wp_version = '6.5-alpha-57338'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.