Make WordPress Core


Ignore:
Timestamp:
10/20/2020 07:52:06 AM (4 years ago)
Author:
youknowriad
Message:

Block Editor: Expose api_version in the block type and the REST endpoint.

The new block editor included in 5.6 introduces an api_version property
that indicates which block API version the block is using.
This commits makes this property available on the block type and the endpoint.

Props TimothyBlynJacobs, gziolo.
Fixes #51529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r49120 r49224  
    208208        'styles'          => 'styles',
    209209        'example'         => 'example',
     210        'apiVersion'      => 'api_version',
    210211    );
    211212
Note: See TracChangeset for help on using the changeset viewer.