Skip to content

Define translated constants after loading textdomain - #209

Merged
rwngallego merged 3 commits into
masterfrom
define-translated-constrants-after-textdomain
Sep 4, 2025
Merged

Define translated constants after loading textdomain#209
rwngallego merged 3 commits into
masterfrom
define-translated-constrants-after-textdomain

Conversation

@rwngallego

Copy link
Copy Markdown
Collaborator

This defines some of the constants that require translated text after the textdomain is loaded to remove the warning:

Notice: Function _load_textdomain_just_in_time was called incorrectly. 
Translation loading for the perfecty-push-notifications 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.

@rwngallego

Copy link
Copy Markdown
Collaborator Author

This is a refined fix of PR #207.

@rwngallego
rwngallego merged commit 1052a0b into master Sep 4, 2025
48 checks passed
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.

1 participant