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

Text domain bug in WordPress 6.7 and above #107

Open
jmbarne3 opened this issue Jan 22, 2025 · 0 comments
Open

Text domain bug in WordPress 6.7 and above #107

jmbarne3 opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels

Comments

@jmbarne3
Copy link
Contributor

Describe the bug
The following notice is being thrown by the plugin on WordPress 6.7 and above:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the Athena-Shortcodes-Plugin 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.

Steps to Reproduce

  1. Ensure you're using WordPress 6.7 or above.
  2. Ensure WP_DEBUG is set to true in the wp-config.php file.
  3. Load any page, and the notice is visible.

Expected Behavior
We should not be seeing this notice on sites.

Possible Fix
We need to make sure we aren't trying to use the built in translation functions before the init action.

@jmbarne3 jmbarne3 added the bug label Jan 22, 2025
Ramin-Farhadi added a commit that referenced this issue Jan 31, 2025
Text domain bug in WordPress 6.7 and above [issue #107]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants