Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function issue for _load_textdomain_just_in_time #87

Open
apkdesign opened this issue Jan 6, 2025 · 0 comments
Open

Function issue for _load_textdomain_just_in_time #87

apkdesign opened this issue Jan 6, 2025 · 0 comments
Assignees

Comments

@apkdesign
Copy link

Since the release of WordPress 6.7 we have received the below "PHP Notice" in the WordPress Debug logs:

Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>spinupwp</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /sites/ulb25.bitz.li/files/wp-includes/functions.php on line 6114

WordPress recommends using the "init" hook instead of the "plugins_loaded" hook to load text domains. This aligns 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

No branches or pull requests

2 participants