WP Manifestindependent plugin directory
manifest / developer / wpmu-fatal-error-when-translation-too-early

wpmu-fatal-error-when-translation-too-early

Throws a descriptive exception when an translation is loaded before WordPress has initialized.

★ 0stars
0.2.1latest · 1mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/helsingborg-stad/wpmu-fatal-error-when-translation-too-early/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress must-use plugin that turns WordPress's early translation-loading warning into a fatal error.

This helps identify plugins and themes that trigger translation loading before the init action. WordPress introduced this warning in version 6.7.

Requirements

  • PHP 7.4 or later
  • WordPress 6.7 or later

Installation

Install the package with Composer:

composer require helsingborg-stad/wpmu-fatal-error-when-translation-too-early

Composer installers places the plugin in WordPress's mu-plugins directory. Alternatively, copy wpmu-fatal-error-when-translation-too-early.php directly to wp-content/mu-plugins/.

Behavior

The plugin listens to WordPress's doing_it_wrong_run action. When WordPress reports misuse of _load_textdomain_just_in_time, it throws a RuntimeException containing WordPress's original message.

Other doing_it_wrong_run notices are not affected.

License

MIT

Releases

2 releases.

Tag
Published
0.2.1 latest
Sep 18, 2026 1mo ago
Sep 18, 2026 1mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.