Make WordPress Core


Ignore:
Timestamp:
07/19/2022 01:22:31 PM (3 years ago)
Author:
gziolo
Message:

Editor: Fix register_block_type does not recognise ancestor block setting

When registering block through PHP, using register_block_type function, newly introduced ancestor block setting in block.json was not recognised. It worked though, when block is registered from JavaScript.

Props lovor, annezazu.
Fixes #56184.

File:
1 edited

Legend:

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

    r53336 r53718  
    287287        'category'        => 'category',
    288288        'parent'          => 'parent',
     289        'ancestor'        => 'ancestor',
    289290        'icon'            => 'icon',
    290291        'description'     => 'description',
Note: See TracChangeset for help on using the changeset viewer.