Make WordPress Core


Ignore:
Timestamp:
04/07/2022 01:38:08 PM (2 years ago)
Author:
gziolo
Message:

Editor: Update preload paths for post, site and widgets editors

Changes the REST endpoints that get preloaded when displaying a page for post, site and widgets editor, so that they are in sync with what the latest version of Gutenberg to be shipped with Core 6.0 really requests.

Props jsnajdr.
See #55505.

File:
1 edited

Legend:

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

    r52942 r53094  
    2020$preload_paths = array(
    2121    array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ),
     22    '/wp/v2/widget-types?context=edit&per_page=-1',
    2223    '/wp/v2/sidebars?context=edit&per_page=-1',
    2324    '/wp/v2/widgets?context=edit&per_page=-1&_embed=about',
Note: See TracChangeset for help on using the changeset viewer.