Make WordPress Core


Ignore:
Timestamp:
02/02/2024 12:59:21 PM (16 months ago)
Author:
gziolo
Message:

Editor: Add allowed_blocks field to block registration and REST API

There is a new block.json field called allowedBlocks, added in Gutenberg in https://github.com/WordPress/gutenberg/pull/58262. This adds support for this new field also on the server.

Props: gziolo, jsnajdr.
Fixes #60403.

File:
1 edited

Legend:

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

    r57239 r57521  
    23042304        'example'          => 'example',
    23052305        'variations'       => 'variations',
     2306        'allowed_blocks'   => 'allowedBlocks',
    23062307    );
    23072308
Note: See TracChangeset for help on using the changeset viewer.