Make WordPress Core


Ignore:
Timestamp:
05/25/2021 07:35:56 AM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Add the layout block support.

The layout block allows containers to define the size of their inner blocks
and the allowed allignments.
It's only enabled for themes with theme.json files.

Props nosolosw.
See #53175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r50983 r50991  
    210210        'ajaxUrl'     => admin_url( 'admin-ajax.php' ),
    211211    ),
     212    'supportsLayout'                       => WP_Theme_JSON_Resolver::theme_has_support(),
    212213    '__experimentalBlockPatterns'          => WP_Block_Patterns_Registry::get_instance()->get_all_registered(),
    213214    '__experimentalBlockPatternCategories' => WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered(),
Note: See TracChangeset for help on using the changeset viewer.