Search by

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

sebastianthulin

Package info

github.com/helsingborg-stad/wpmu-fatal-error-when-translation-too-early

Type:wordpress-muplugin

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

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.1 2026-09-18 13:32 UTC

This package is auto-updated.

Last update: 2026-09-18 13:37:16 UTC


README

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