Skip to content

Conversation

@dkoo
Copy link
Contributor

@dkoo dkoo commented Dec 13, 2024

Fixes a warning about calling load_plugin_textdomain too early. Also fixes the text domain itself for the plugin.

Testing

There are currently no translation files for this plugin, so just test that you don't see a PHP warning PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>newspack-plugin</code> domain was triggered too early. If you are seeing it on this branch, make sure your newspack-plugin repo has the changes from this Plugin branch.

@dkoo dkoo self-assigned this Dec 13, 2024
@dkoo dkoo requested a review from a team as a code owner December 13, 2024 23:34
@leogermani leogermani merged commit f7d8261 into trunk Dec 16, 2024
@leogermani leogermani deleted the fix/load-textdomain branch December 16, 2024 13:01
@github-actions
Copy link

Hey @dkoo, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Dec 16, 2024
## [2.0.3-alpha.1](v2.0.2...v2.0.3-alpha.1) (2024-12-16)

### Bug Fixes

* load text domain on init hook ([#66](#66)) ([f7d8261](f7d8261))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.0.3-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Dec 16, 2024
## [2.0.3](v2.0.2...v2.0.3) (2024-12-16)

### Bug Fixes

* load text domain on init hook ([#66](#66)) ([f7d8261](f7d8261))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants