-
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
Revert changes to bindings replacement logic to not use regex #62355
Conversation
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. |
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/compat/wordpress-6.5/blocks.php |
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.
Thanks for the quick PR!
Flaky tests detected in 806da8a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9396824098
|
I see it did make it and there's a core PR WordPress/wordpress-develop#6744. Testing with both that and this PR checked, the revert works, but with only this one the block bindings code from core still causes the issue. I guess block bindings must be running twice when the gutenberg plugin is active. |
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.
Works for me too 🎉
Oh sorry, I meant that the support of more attributes didn't make it in 6.6. I'll change the description for clarity.
Do you mean that with WordPress |
Yep, when debugging I could see that |
You're totally right. Anyway, with the backport in core I believe we should be fine. Apart from that, I think we don't want to run |
…ess#62355) * Revert changes to bindings replacement logic * Add backport changelog Co-authored-by: SantosGuillamot <[email protected]> Co-authored-by: kevin940726 <[email protected]> Co-authored-by: talldan <[email protected]>
What?
Revert the changes made in this pull request to avoid using regex that can cause potential bugs like this one.
Why?
The idea of that pull request was to simplify the logic to support more attributes, but, in the end, there is no plan to support more attributes for 6.6. As it is causing other problems, it seems it is better to revert it.
How?
Just reverting the changes made.
Testing Instructions
Follow the testing instructions of #62347 (comment) and check that the issue is solved.