-
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
Block Bindings: Remove key fallback in bindings get values and rely on source label #65517
Block Bindings: Remove key fallback in bindings get values and rely on source label #65517
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. |
Size Change: -8 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
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.
Makes perfect sense to align with other cases 👍🏻
…n source label (#65517) * Always fall back to source label * Adapt e2e tests Co-authored-by: SantosGuillamot <[email protected]> Co-authored-by: gziolo <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 4baca3e |
…n source label (#65517) * Always fall back to source label * Adapt e2e tests Co-authored-by: SantosGuillamot <[email protected]> Co-authored-by: gziolo <[email protected]>
I just cherry-picked this PR to the release/19.3 branch to get it included in the next release: 814d35c |
What?
It removes the fallback to the
args.key
whengetValues
doesn't exist. This is the case of sources registered only in the server, for example.Why?
As explained here, In that pull request, we stopped treating the
args.key
as a special argument and rely only on the label, which is always provided by the source. It seems it wasn't removed from this part of the code.How?
I just removed the fallback to the key and relied on the server source. Additionally, I changed the e2e tests to reflect that.
Testing Instructions
args.key
: