Opened 5 years ago
Closed 5 years ago
#53416 closed defect (bug) (fixed)
block.json without a `supports` key throws notice
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.8 | Priority: | normal |
| Severity: | normal | Version: | 5.8 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | Cc: |
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.
Trac ticket: https://core.trac.wordpress.org/ticket/53416