Make WordPress Core


Ignore:
Timestamp:
04/07/2022 01:38:08 PM (3 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/site-editor.php

    r53093 r53094  
    8888$preload_paths           = array(
    8989    array( '/wp/v2/media', 'OPTIONS' ),
    90     '/wp/v2/types?context=edit',
     90    '/wp/v2/types?context=view',
    9191    '/wp/v2/types/wp_template?context=edit',
    9292    '/wp/v2/types/wp_template-part?context=edit',
    93     '/wp/v2/taxonomies?context=edit',
    94     '/wp/v2/pages?context=edit',
    95     '/wp/v2/categories?context=edit',
    96     '/wp/v2/posts?context=edit',
    97     '/wp/v2/tags?context=edit',
    9893    '/wp/v2/templates?context=edit&per_page=-1',
    9994    '/wp/v2/template-parts?context=edit&per_page=-1',
    100     '/wp/v2/settings',
    10195    '/wp/v2/themes?context=edit&status=active',
    10296    '/wp/v2/global-styles/' . $active_global_styles_id . '?context=edit',
Note: See TracChangeset for help on using the changeset viewer.