Opened 3 years ago
Closed 3 years ago
#53416 closed defect (bug) (fixed)
block.json without a `supports` key throws notice
Reported by: | walbo | Owned by: | SergeyBiryukov |
---|---|---|---|
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
supports
to theblock.json
and 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