Make WordPress Core


Ignore:
Timestamp:
04/06/2022 09:45:31 AM (4 years ago)
Author:
gziolo
Message:

Editor: Make block type aware of the ancestor field

The ancestor field was recently added to the block.json schema in Gutenberg. See: https://github.com/WordPress/gutenberg/pull/39894.

Props darerodz.
Fixes #55531.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/admin/includesPost.php

    r52010 r53084  
    829829                        'category'        => 'common',
    830830                        'render_callback' => 'foo',
     831                        'ancestor'        => array( 'core/test-ancestor' ),
    831832                );
    832833
     
    847848                                'category'    => 'common',
    848849                                'styles'      => array(),
     850                                'ancestor'    => array( 'core/test-ancestor' ),
    849851                                'keywords'    => array(),
    850852                                'variations'  => array(),
Note: See TracChangeset for help on using the changeset viewer.