Make WordPress Core


Ignore:
Timestamp:
05/24/2021 07:31:49 AM (5 years ago)
Author:
gziolo
Message:

Editor: Extract block_editor_rest_api_preload method for use with different editor screens

It is going to be used on the new widgets editor screen. This patch also introduced a new class WP_Block_Editor_Context that is going to be used with revised block editor filters to let extenders to keep their existing behavior. It should also allow to provide more settings through the context class as new screens get introduced like the navigation editor.

Props azaozz, chrisvanpatten, timothyblynjacobs, youknowriad.
Fixes #52920.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r50945 r50956  
    285285require ABSPATH . WPINC . '/sitemaps/providers/class-wp-sitemaps-taxonomies.php';
    286286require ABSPATH . WPINC . '/sitemaps/providers/class-wp-sitemaps-users.php';
     287require ABSPATH . WPINC . '/class-wp-block-editor-context.php';
    287288require ABSPATH . WPINC . '/class-wp-block-type.php';
    288289require ABSPATH . WPINC . '/class-wp-block-pattern-categories-registry.php';
Note: See TracChangeset for help on using the changeset viewer.