Documentation: Clarify the behavior of parent when empty during block registration #15731
Labels
[Feature] Block API
API that allows to express the block paradigm.
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Needs Dev
Ready for, and needs developer efforts
[Type] Developer Documentation
Documentation for developers
Part of #41236.
Describe the bug
https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#parent-optional
It might be good to update the documentation here to clarify that you can restrict it to the root if you pass an empty array. (Also good to check if there are tests for this or if it just happens to work.)
This also leads to the question what the default is for this parameter.
undefined
?null
? In any case just "Type: Array" doesn't seem correct.The text was updated successfully, but these errors were encountered: