From 03f22dcd1ccb78f4ef3747cf9d877c45f8831f5e Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 8 Nov 2023 16:47:09 +0100 Subject: [PATCH] Fix translation file order --- lib/class-ginger-mo.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/class-ginger-mo.php b/lib/class-ginger-mo.php index 4ab59bf..ff35947 100644 --- a/lib/class-ginger-mo.php +++ b/lib/class-ginger-mo.php @@ -120,8 +120,7 @@ public function load( string $translation_file, string $textdomain = 'default', $this->loaded_translations[ $locale ][ $textdomain ] = array(); } - // Ensure that last-loaded translation takes precedence. - array_unshift( $this->loaded_translations[ $locale ][ $textdomain ], $moe ); + $this->loaded_translations[ $locale ][ $textdomain ][] = $moe; return true; }