-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
I18n: Fix handling of nullish pot comments #45414
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: 0 B Total Size: 1.28 MB ℹ️ View Unchanged
|
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.
I can confirm that it fixes the issue.
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.
The fix here makes sense to me as we expect comments
to be an object.
Thank you @Mamaduka and @manzoorwanijk 🙌 |
What?
This PR fixes the handling of nullish comments in the pot-to-PHP script.
Why?
To fix the bug reported in #43677 (review).
How?
We're falling back to an object in case it's nullish.
Testing Instructions
@wordpress/i18n
package #43677 still work.@wordpress/i18n
package #43677 (comment)