-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Block Bindings: Add block uses_context defined by block bindings sources
#6079
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
Closed
SantosGuillamot
wants to merge
38
commits into
WordPress:trunk
from
SantosGuillamot:fix/add-context-defined-by-block-bindings-sources
Closed
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
63d381f
Read `uses_context` defined by sources
SantosGuillamot 65e259a
Add `uses_context` to post meta source
SantosGuillamot 68ce2a8
Change post meta `$post_id`
SantosGuillamot ade4119
Use `uses_context` in pattern overrides source
SantosGuillamot 5011e16
Fix formatting
SantosGuillamot 929afb6
Move logic to source registration
SantosGuillamot 44125a4
Format latest changes
SantosGuillamot 5a931f4
Remove empty line
SantosGuillamot dccef2e
Revert "Use `uses_context` in pattern overrides source"
SantosGuillamot 016ec29
Add `uses_context` to pattern overrides source
SantosGuillamot e305f7c
Create `get_block_type_uses_context` filter
SantosGuillamot 49a8b7a
Use `get_block_type_uses_context` in source registration
SantosGuillamot 42575c4
Update docstrings
SantosGuillamot e41ba30
Move supported blocks to private variables
SantosGuillamot 4ca8176
Remove unnecessary attributes from variable
SantosGuillamot 46df776
Change `$support_blocks` comment
SantosGuillamot 59746c0
Fix typo in comment
SantosGuillamot 7bcc71e
Check the `uses_context` property is an array
SantosGuillamot 5810180
Fix process bindings check
SantosGuillamot a578d5c
Use strict argument in `in_array`
SantosGuillamot 9f01568
Use `empty` function in post meta source
SantosGuillamot ba7bf25
Update comments and descriptions
SantosGuillamot 0c4a795
Remove variations and uses_context in `__set` function
SantosGuillamot 7e80f5e
Add test to check if the value of the source context shows
SantosGuillamot d839f33
Test if the source result object properties are correct
SantosGuillamot e82879e
Test registration fails when `uses_context` is string
SantosGuillamot 102c940
Test merging multiple sources `uses_context`
SantosGuillamot f4af4f7
Join variations and uses_context in the same conditional
SantosGuillamot f2b3b3a
Move multiple sources test to a different file
SantosGuillamot 4f8668d
Provide error message in uses_context test
SantosGuillamot 07a7317
Check allowed source properties in the registry
SantosGuillamot f14817f
Remove register_meta code
SantosGuillamot edaaffa
Remove spaces in $block_content in tests
SantosGuillamot 03e66ee
Check that `uses_context` increase by three
SantosGuillamot 0b49cc4
Update comment to use third person
SantosGuillamot 9838fec
Don't use $merged_uses_context variable
SantosGuillamot 59fde29
Change translators comment syntax to match standard
SantosGuillamot 5f2ddc3
Add covers get_uses_context
SantosGuillamot 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
Remove spaces in $block_content in tests
- Loading branch information
commit edaaffad0cceeef98ca9d982189057a25a364710
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
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.
Uh oh!
There was an error while loading. Please reload this page.