-
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 "auto inserting blocks" to "block hooks" #54147
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
7c9af07
Rename block.json field to __experimentalBlockHooks
ockham 8dd9ed6
Update comment
ockham 4325bef
Rename window. flag for experiment
ockham 7b2e498
Rename Gutenberg experiment
ockham 24e5119
Update GB experiment title and label
ockham 33b84b2
Change classname
ockham a2ea218
Rename component
ockham 5fb3202
Rename two variables
ockham 89bb600
Rename more variables
ockham 2bcf644
Comment wording
ockham 8e7193e
Change hooked blocks block hook name :dizzy:
ockham 282909a
Change HOC name
ockham 6fa67be
s/gutenberg_register_auto_inserted_block/gutenberg_add_hooked_block/g
ockham ac87ee2
s/gutenberg_register_auto_inserted_blocks/gutenberg_add_hooked_blocks/g
ockham 0d2cf6a
s/gutenberg_auto_insert_block/gutenberg_insert_hooked_block/g
ockham 130b5d8
Change blocks controller field name
ockham bad8e9b
Change server block settings field name
ockham da434a2
s/gutenberg_register_auto_insert_rest_field/gutenberg_register_block_…
ockham 2773ff8
Change variable name
ockham 5943b7e
Update _doing_it_wrong message
ockham 2d1d808
Update PHPDoc for gutenberg_add_hooked_block
ockham a48ddca
Update file's PHPDoc
ockham 4139d17
Update arg and var names in gutenberg_add_hooked_block
ockham 8173a09
Update PHPDoc for gutenberg_add_hooked_blocks
ockham bce1ad5
Tweak PHPDoc for gutenberg_add_hooked_block
ockham 0d1667a
More updates to gutenberg_add_hooked_block inline PHPDoc
ockham b7a83ec
Update PHPDoc for gutenberg_insert_hooked_block
ockham d8663a0
Move helper functions below public API functions
ockham 540b966
Change PHP file name
ockham 3fa0ceb
Rename block property
ockham 59c7055
Comment wording
ockham e14313e
Rename JS file
ockham 4d05faf
Rename SCSS file
ockham 09f7938
Update comment
ockham f6302a2
Typo
ockham c3622d6
Another typo
ockham ca5331b
Streamline names in JS file
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
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
245 changes: 125 additions & 120 deletions
245
lib/experimental/auto-inserting-blocks.php → lib/experimental/block-hooks.php
Large diffs are not rendered by default.
Oops, something went wrong.
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
271 changes: 0 additions & 271 deletions
271
packages/block-editor/src/hooks/auto-inserting-blocks.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
An important note: remember to enable the experiment again before testing these changes. It took me a while to realize that.