-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Block Bindings: Add bindableAttributes in preview context
#72625
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
Conversation
|
If this lands, should be backported to 6.9? 🤔 Personally I think so.. --cc @ellatrix @cbravobernal |
|
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. |
bindableAttributes in preview context
|
We should check that this doesn't affect optimizations from #60543. |
|
Size Change: +3 B (0%) Total Size: 2.19 MB
ℹ️ View Unchanged
|
I agree that should be backported. |
ockham
left a comment
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, Nik -- I can confirm both the bug in trunk, and that your PR fixes it 👍
If this lands, should be backported to 6.9? 🤔 Personally I think so..
Yeah, definitely!
We should check that this doesn't affect optimizations from #60543.
@Mamaduka Do we have any choice though? The UI is quite broken without this fix 😅
|
If we need it it's fine |
|
I don’t think we have. Let’s merge and monitor CodeVitals. |
Co-authored-by: ntsekouras <[email protected]> Co-authored-by: ockham <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: cbravobernal <[email protected]> Co-authored-by: ellatrix <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: b96f57d |
Co-authored-by: ntsekouras <[email protected]> Co-authored-by: ockham <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: cbravobernal <[email protected]> Co-authored-by: ellatrix <[email protected]>
|
The code updated is already on the |
What?
Follow up of: #72351
This PR adds the
bindableAttributesinpreviewContextas well. This results in bindings being processed properly in preview context such as block examples and block previews.You can see the issue without this change in Query Loop block with
Post dateblock, where we are showing the items in block previews:Screen.Recording.2025-10-23.at.12.44.36.PM.mov
Notes
If I'm not missing something, the performance shouldn't be affected by this change, since the main fix in the original PR was about the select call.
Testing Instructions
Start blank.datedatetoPost Datevariation (this is fixed here)