Skip to content

Translations should only be called on/after init#363

Merged
benbalter merged 2 commits intowp-document-revisions:mainfrom
NeilWJames:main
May 21, 2025
Merged

Translations should only be called on/after init#363
benbalter merged 2 commits intowp-document-revisions:mainfrom
NeilWJames:main

Conversation

@NeilWJames
Copy link
Copy Markdown
Collaborator

Changes have already been made to ensure translations are only done on/after the init hook.

WP 6.8 includes a doing_it_wrong call for translations - showing that the widget __construct call was being done during plugin_loaded, i.e. earlier that included translations.

This fix ensures that translation calls are not done prior to the init hook.

@NeilWJames NeilWJames requested a review from benbalter May 21, 2025 13:08
@codecov-commenter

This comment was marked as outdated.

@benbalter benbalter merged commit 60c5307 into wp-document-revisions:main May 21, 2025
9 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.

3 participants