WordPress/gutenberg
Documentation: Clarify the behavior of parent when empty during block registration
開放
#15,731 建立於 2019年5月20日
Good First IssueNeeds Dev[Feature] Block API[Status] In Progress[Type] Developer Documentation
倉庫指標
- 星標
- (9,607 顆星)
- PR 合併指標
- (平均合併 12天 18小時) (30 天內合併 509 個 PR)
描述
Part of https://github.com/WordPress/gutenberg/issues/41236.
Describe the bug
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.