Make WordPress Core

Changeset 54084


Ignore:
Timestamp:
09/06/2022 04:16:07 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Block Editor: Preload settings and templates permissions.

This is a path for following changes in the Gutenberg plugin:

Follow-up to [43815], [44172], [46110], [51962], [52995].

Props Mamaduka, bernhard-reiter, TimothyBlynJacobs.
See #56467.

File:
1 edited

Legend:

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

    r53404 r54084  
    6969    array( rest_get_route_for_post_type_items( 'page' ), 'OPTIONS' ),
    7070    array( rest_get_route_for_post_type_items( 'wp_block' ), 'OPTIONS' ),
     71    array( rest_get_route_for_post_type_items( 'wp_template' ), 'OPTIONS' ),
    7172    sprintf( '%s/autosaves?context=edit', $rest_path ),
    7273    '/wp/v2/settings',
     74    array( '/wp/v2/settings', 'OPTIONS' ),
    7375);
    7476
Note: See TracChangeset for help on using the changeset viewer.