-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Block Hooks: Add field to block registration, REST API #5203
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
Closed
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3186d24
Add block_hooks property
ockham 27fcdc5
Map camelCased position string to snake_case
ockham 42166c8
Move block_hooks field under provides_context
ockham 99ab6c7
Fix PHPDoc types
ockham 67135e3
Add block_hooks to block types REST API controller
ockham 49bf14e
Update REST API field schema
ockham ad879ca
Fix (and extend) block type controller test coverage
ockham 8fd46e9
Add to get_block_editor_server_block_settings()
ockham e71e581
Add @since PHPDoc to register_block_type_from_metadata
ockham 6de2dc3
Verify that block type contains block hooks from metadata
ockham f3a04cb
Add test coverage for get_block_editor_server_block_settings
ockham 72de120
Fix unit test
ockham 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 (and extend) block type controller test coverage
- Loading branch information
commit ad879ca909eee627e63bb501ba5ee574eca42a0e
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.