Opened 6 years ago
Closed 6 years ago
#51529 closed enhancement (fixed)
Add the new api_version property to the block type object.
| Reported by: | youknowriad | Owned by: | youknowriad |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In WordPress 5.6, we're introducing an apiVersion for the block.json shape.
We need to update the register_block_type_from_metadata function to map this property properly to the block type object in order to be able to use for server-side rendering.
Change History (6)
This ticket was mentioned in PR #604 on WordPress/wordpress-develop by youknowriad.
6 years ago
#1
- Keywords has-patch added
TimothyBJacobs commented on PR #604:
6 years ago
#2
Should we include adding this to the REST controller in the ticket too?
youknowriad commented on PR #604:
6 years ago
#3
@TimothyBJacobs sure, not sure where exactly I should add that but I'll take a look.
youknowriad commented on PR #604:
6 years ago
#4
How is this looking?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/51529