Make WordPress Core


Ignore:
Timestamp:
04/26/2022 09:48:20 AM (3 years ago)
Author:
gziolo
Message:

Editor: Register 'lock' attribute for every block on the server

Backports changes from https://github.com/WordPress/gutenberg/pull/40468.

The lock attribute needs to be supported by every block, but currently, it is only done on the client site. As a result, it was causing block rendered API requests to fail when blocks are locked.

Props mamaduka, peterwilsoncc.
See #55567.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/register.php

    r53091 r53268  
    393393                    'selector' => '.message',
    394394                ),
     395                'lock'    => array( 'type' => 'object' ),
    395396            ),
    396397            $result->attributes
Note: See TracChangeset for help on using the changeset viewer.