-
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
Rename blocks.query as blocks.source #1902
Conversation
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.
Much better. :)
Should we merge? ;) |
@jasmussen It might need a rebase in case there are new additions of the old |
I trust you completely, I didn't mean to hurry you or anything. I just saw an approved but unmerged branch with a green button, and wanted to make sure it hadn't been forgotten. My apologies, as you were! |
@aduth I've been sitting on this one, and I am having a slightly bigger inclination for using |
I don't have a particularly strong preference either way. "source" is a little ambiguous as to whether it's as a noun or a verb (the source, to source). Also has an impact on #1905, e.g.
In that light, |
I like |
bab0067
to
0daf64e
Compare
Rebased to resolve conflicts, update new blocks, change to Previously: bab0067 |
0daf64e
to
32eff9b
Compare
32eff9b
to
a4708a1
Compare
Codecov Report
@@ Coverage Diff @@
## master #1902 +/- ##
=======================================
Coverage 25.35% 25.35%
=======================================
Files 151 151
Lines 4701 4701
Branches 792 792
=======================================
Hits 1192 1192
Misses 2967 2967
Partials 542 542
Continue to review full report at Codecov.
|
Hm, this broke paste. :/ |
This pull request seeks to rename the blocks export containing sources from
query
tosource
. Previously these were referred to as matchers in documentation. Thequery
name has caused trouble since the export is commonly destructured and containsquery
as an available matcher (wp.blocks.query.query
), i.e.Alternative name considered was
source
. Open for discussion.See also: http://gutenberg-devdoc.surge.sh/reference/attribute-sources/
Testing instructions:
There should be no functional changes with this branch.
Verify that tests pass: