This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
PHP API for registering blocks with Block Lab #434
Merged
Merged
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d2bccc4
Add block_lab_add_block helper function
lukecarbis 7b6106b
Add block_lab_add_field helper function
lukecarbis e1982b4
Remove test code
lukecarbis 10a44f9
Use more descriptive argument names in block registration helper func…
lukecarbis 301baab
Merge branch 'develop' into feature/php-api
lukecarbis e547cc3
Use wp_parse_args for default block and field config
lukecarbis ea42556
Store an array of blocks in the loader class, instead of a string of …
lukecarbis fddc514
Merge branch 'develop' into feature/php-api
lukecarbis 6c26b66
Move field type default to the field class
lukecarbis c4e93c6
Change action name to add_block instead of register_block
lukecarbis 5b98f71
Move block registration logic to the Loader
lukecarbis aed43f4
Add unit tests for add_field() and add_block()
kienstra 0da5c4b
Merge in develop, resolve conflicts
kienstra 9f33310
Add a few assertions for Field::from_array()
kienstra dad1818
Add a short test for block_lab_add_block() to see how Mockery works i…
kienstra 074f61d
Add another assertion for block_lab_add_block()
kienstra 2cfd4ad
Add a test for block_lab_add_field()
kienstra 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
There are no files selected for viewing
This file contains 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 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 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 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 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.
Is it alright that I made this change? Maybe something else was intended.
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.
No, nothing else intended. Good pickup.