Skip to content

Fix warning triggered in WordPress 6.7 and newer due to translation functions being called too early in the plugin lifecycle. Thanks to @alessandrocarrera for the report and @richaber for additional context.#549

Merged
jonathanstegall merged 4 commits intomasterfrom
548-fix-translations-loading-too-early
Aug 3, 2025
Merged

Fix warning triggered in WordPress 6.7 and newer due to translation functions being called too early in the plugin lifecycle. Thanks to @alessandrocarrera for the report and @richaber for additional context.#549
jonathanstegall merged 4 commits intomasterfrom
548-fix-translations-loading-too-early

Conversation

@jonathanstegall
Copy link
Copy Markdown
Member

What does this Pull Request do?

This should fix #548, in which WordPress versions after 6.7.0 show a notice about translation being triggered too early. This makes very minor changes, which should not affect the tasks that the plugin needs to run early, while still preventing translations from being triggered before they should be.

How do I test this Pull Request?

  • Make sure the notices don't appear
  • Make sure push and pull schedules for data to and from Salesforce still work correctly

…hod doesn't need to be a class attribute; it can just run a get function
@jonathanstegall jonathanstegall added bug fix Pull request that fixes a bug patch pull request that requires a patch release, ex v2.1.2. This is the default for new releases. labels Aug 3, 2025
@jonathanstegall jonathanstegall added this to the v2.2.12 milestone Aug 3, 2025
@jonathanstegall jonathanstegall self-assigned this Aug 3, 2025
@jonathanstegall jonathanstegall changed the title Prevent translations from loading too early Fix warning triggered in WordPress 6.7 and newer due to translation functions being called too early in the plugin lifecycle. Thanks to @alessandrocarrera for the report and @richaber for additional context. Aug 3, 2025
@jonathanstegall jonathanstegall merged commit 52686a3 into master Aug 3, 2025
2 checks passed
@jonathanstegall jonathanstegall deleted the 548-fix-translations-loading-too-early branch August 3, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Pull request that fixes a bug patch pull request that requires a patch release, ex v2.1.2. This is the default for new releases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translation loading too early (WordPress 6.7.0 warning)

1 participant