-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Remove core/entity binding in favour of post and term data bindings. Apply to Nav blocks. #72165
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
Merged
getdave
merged 21 commits into
trunk
from
update/remove-redundant-entity-binding-source
Oct 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8de830e
Block bindings: prefer attributes over context; add link; remove core…
getdave 4e4e8c1
Add clear comments for backwards compat
getdave fda4b5f
Use correct sources
getdave 8da866f
Don't use setter for navigation bindings
getdave 6a67da0
Clean up Nav block conditionals
getdave 2fe149f
Tone down backward compat comments
getdave fe31a16
Reduce comment verbosity in PHP
getdave 5ae5757
Use correct error handling
getdave cb5c56b
Avoid dding clientId arg
getdave 3e398c2
Fix Submenu using wrong binding
getdave 455bacc
Fix https://github.com/WordPress/gutenberg/pull/72165\#pullrequestrev…
getdave 1b0511f
Tweak comments
getdave 57d6fc5
Remove count from term count string
getdave befad83
Improve consistency of use-entity-binding
getdave b981a70
Handle all binding types when clearing url
getdave 8a47fd9
Add backport changelog
ockham fe1289b
Fix bug with sidebar Link field not clearing
getdave 37cba74
Match tests to new implementation
getdave 92e7bfd
await error notice in link control test
jeryj 4c60e00
Fix faulty entity binding clearing logic
getdave 7bc97f3
Tweak entity binding tests again
getdave File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Submenu using wrong binding
- Loading branch information
commit 3e398c282ef5e86c6ba3581aba40cea5dbb7f260
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
TBH I haven't fully figured out why the closure attributes can be incorrect sometimes. I have a feeling that maybe it would be possible to get them correct right off the bat -- at least in the scenario I can think off, where the user selects e.g. a page link from the Link UI within a Nav Submenu, we have the information that the Nav Link is going to point to a page.
But the
freshAttributesapproach works and fixes the issue I observed, so let's go with it 👍