Opened 5 years ago
Closed 5 years ago
#53416 closed defect (bug) (fixed)
block.json without a `supports` key throws notice
| Reported by: | walbo | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Editor | Version: | 5.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When WordPress converts typography keys declared under supports.* to supports.typography.* is never checks if supports is defined and throws an undefined index on blocks without a supports key.
Steps to reproduce:
- Create a block without adding
supportsto theblock.jsonand register the block usingregister_block_type_from_metadata.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/53416