Files
coraislovely-code df577938aa Keep legacy-named translation files loading
No language pack ever loaded under the old 'comiceasel' domain, but a site
that compiled its own comiceasel-{locale}.mo did load it, and the rename
would have dropped that translation without a word. A load_textdomain_mofile
filter answers with the legacy filename when nothing exists under the new
one, looking both in wp-content/languages/plugins and in the directory
WordPress asked about, since 6.7 names the registered domain directory rather
than the one the file is in.

The explicit load_plugin_textdomain() call is kept and commented for the same
reason: on WordPress before 6.7 nothing else requests a translation file by
name, so it is the only place the filter can intervene.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 18:11:05 -04:00
..
2026-07-29 09:09:42 -04:00