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

load_textdomain_just_in_time warnings #109

Closed
1 task done
kevinlisota opened this issue Nov 21, 2024 · 2 comments
Closed
1 task done

load_textdomain_just_in_time warnings #109

kevinlisota opened this issue Nov 21, 2024 · 2 comments

Comments

@kevinlisota
Copy link

Describe the bug

In WP 6.7, this plugin now kicks off the following Doing It Wrong message on every pageload

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the elasticpress 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. (This message was added in version 6.7.0.)

Steps to Reproduce

Active ElasticPress Labs and use Query Monitor on each page load.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@felipeelia
Copy link
Member

felipeelia commented Dec 9, 2024

That error is related to the elasticpress text domain, not the elasticpress-labs domain. It is also worth noting that Query Monitor is probably the problem here, as stated in this comment.

EP Labs already calls the load_plugin_textdomain function in the init hook, so there is nothing to be done on this one.

@columbian-chris
Copy link

Thanks, @felipeelia.

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

3 participants