-
Notifications
You must be signed in to change notification settings - Fork 2k
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
FSE: Run phpcbf on the synced files to fix text domain #43792
Conversation
Caution: This PR affects files in the FSE Plugin on WordPress.com D45699-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing in the FSE Plugin for more info: PCYsg-ly5-p2 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
@@ -126,6 +126,7 @@ cp -R $CODE/src/components $TARGET/ | |||
|
|||
# Fix the text domain | |||
npx eslint . --fix > /dev/null 2>&1 | |||
phpcbf $TARGET |
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.
Usually in bash I see variables like this wrapped with ""
but I see that's not the case in lines above. 🙃
Just notion, no need changes.
@obenland 👋 can you help with the Newspack sync script review? |
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.
Tested, works as described.
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.
WordPress Desktop CI Failure (ci/wp-desktop): @akirk please re-try this workflow ("Rerun Workflow from Failed") and/or review this PR for breaking changes. Please also ensure this branch is rebased off latest Calypso master.
@akirk apologies I didn't catch this sooner, but while testing out the version bump for the FSE plugin in #43857 where I've rebased it to include this PR, it looks like the CI (Github Actions) build is failing on this call to Here's the error I can see in the
From looking at the error message, it sounds like the Also, for some reason, in the build for this PR, it looks like the |
Update: Alex has resolved this in #43857 by adding the step to install composer in the Github Action before |
In the current FSE release we have gettext calls with the wrong text domain: https://plugins.trac.wordpress.org/browser/full-site-editing/trunk/newspack-blocks/synced-newspack-blocks/blocks/homepage-articles/view.php#L218
Changes proposed in this Pull Request
Testing instructions
If you receive an error message like
ERROR: Referenced sniff "PHPCompatibility" does not exist
either put yourvendor/bin
directory into the path or make sure that you have installed the sniff (for example withcomposer global require phpcompatibility/php-compatibility
).This should show gettext calls with a parameter
full-site-editing
, notnewspack-blocks
.