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
Fix Code Standards for RC 2 release #59774
Conversation
/* | ||
* Injection of hooked blocks into the Navigation block relies on some functions present in WP >= 6.5 | ||
* that are not present in Gutenberg's WP 6.5 compatibility layer. | ||
*/ |
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.
So all these comments are only really relevant for GB, not core, right? 'cause obviously when merging this change into core, these functions exist.
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 file is maintained in Gutenberg and those comments are relevant. Whilst I appreciate they aren't relevant for Core, we don't have a process for handling exclude comments at this time.
How critical is it to resolve this for RC 2?
Can we discuss a solution for RC 3?
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.
Just a general remark, not a blocker. I suppose we could remove remove these hardening checks & comments in the future though, e.g. in 6.6?
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 think at some point we should gitignore these files in Core, they should be considered a "library" like any JS library. But I guess that change can only happen when/if we embrace php packages as well.
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 raised this Discussion in the hope we can improve the whole process for further releases.
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.
As for the Block Hooks related logic found in the Navigation block code specifically, we might be able to absorb it into the more generic inject_ignored_hooked_blocks_metadata_attributes
function present in Core, see https://core.trac.wordpress.org/ticket/60759.
Co-authored-by: Pascal Birchler <pascalb@google.com>
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Just waiting on an ✅ Approval 🙏 |
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.
Thank you!
@youknowriad I think we need to get this merged into order to make the release code freeze. Any further followups will need to wait until RC3 or we can discuss delaying the release. |
Merging, we don't have much time left before the release. |
I'll cherry pick this to the wp branch and re-run the release |
Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: swissspidy <swissspidy@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ockham <bernhard-reiter@git.wordpress.org> # Conflicts: # packages/block-library/src/navigation/index.php
Co-authored-by: getdave <get_dave@git.wordpress.org> Co-authored-by: swissspidy <swissspidy@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ockham <bernhard-reiter@git.wordpress.org>
What?
Updates code for WP 6.5 RC2 destined for WP Core to align with standards.
See WordPress/wordpress-develop#6253
Why?
CS
How?
Resolve all comments from WordPress/wordpress-develop#6253
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Co-authored-by: getdave get_dave@git.wordpress.org
Co-authored-by: swissspidy swissspidy@git.wordpress.org