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

Issue-1422: Load the text domain using the "init" hook #1424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phillip-hopper
Copy link

@phillip-hopper phillip-hopper commented Dec 26, 2024

Fixes this WordPress warning:

PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the qtranslate 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 init action or later.

I removed the comment regarding the user not being authenticated because the user is authenticated when the "init" hook fires.

https://developer.wordpress.org/reference/hooks/init/

Closes #1422

@hirasso
Copy link

hirasso commented Jan 8, 2025

@herrvigg is qtranslate-xt still maintained? 🙏

@rafaelurben
Copy link

@hirasso See #1414 (comment) for the most recent update on this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants