-
Notifications
You must be signed in to change notification settings - Fork 199
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
Prevent early translation loading #7701
Conversation
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
Test the previous changes of this PR with WordPress Playground. |
b951a2c
to
77ee8c5
Compare
Test the previous changes of this PR with WordPress Playground. |
77ee8c5
to
077f563
Compare
Test the previous changes of this PR with WordPress Playground. |
077f563
to
7cc134a
Compare
Test the previous changes of this PR with WordPress Playground. |
<referencedProperty name="Sensei_PostTypes::$course" /> | ||
<referencedProperty name="Sensei_PostTypes::$lesson" /> | ||
<referencedProperty name="Sensei_PostTypes::$question" /> | ||
<referencedProperty name="Sensei_PostTypes::$quiz" /> | ||
<referencedProperty name="Sensei_PostTypes::$messages" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because the constructor properties are set dynamically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Seems we need to do the same thing for Sensei Pro too. I'll log a new issue.
Resolves #7696
Proposed Changes
There is a new change in WordPress 6.7 that prevents plugins from loading translations too early, without waiting for more parts of WordPress to be loaded.
This PR fixes all translations that are loaded early while preserving the code logic.
Testing Instructions
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly
Pre-Merge Checklist