Skip to content

Comments

fix: Fixes the problem with _load_textdomain_just_in_time#2546

Merged
wprashed merged 1 commit intothemeum:masterfrom
fabianmossberg:master
Apr 9, 2025
Merged

fix: Fixes the problem with _load_textdomain_just_in_time#2546
wprashed merged 1 commit intothemeum:masterfrom
fabianmossberg:master

Conversation

@fabianmossberg
Copy link
Contributor

Moving load_textdomain from plugins_loaded to init.

Closes #2545

Copy link

@spacecharly spacecharly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the solution to fix the notice "Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the kirki domain was triggered too early"

It is necessary to use the 'init' hook instead of the 'plugins_loaded' hook for loading text domains to align with WordPress 6.7 requirements, which specify that text domains should only be loaded on init or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP Norice: Function _load_textdomain_just_in_time was called incorrectly

3 participants