Make WordPress Core


Ignore:
Timestamp:
04/26/2022 09:48:20 AM (4 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/admin/includesPost.php

    r53084 r53268  
    845845                'description' => '',
    846846                'icon'        => 'text',
     847                'attributes'  => array(
     848                    'lock' => array( 'type' => 'object' ),
     849                ),
    847850                'usesContext' => array(),
    848851                'category'    => 'common',
Note: See TracChangeset for help on using the changeset viewer.