[wp-trac] [WordPress Trac] #53416: block.json without a `supports` key throws notice
WordPress Trac
noreply at wordpress.org
Tue Jun 15 20:54:34 UTC 2021
#53416: block.json without a `supports` key throws notice
--------------------------+-----------------------------
Reporter: walbo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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 the `block.json` and
register the block using `register_block_type_from_metadata`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list