WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/21/2021 05:10:56 AM (8 months ago)
Author:
gziolo
Message:

Editor: Abstract block editor configuration

There are several WordPress hooks defined on the server that depend on $post object that isn’t present on the new screens like edit site, edit widgets, or edit navigation. This patch deprecates existing filters and introduces replacements that are context-aware.

Props azaozz, andraganescu, jeremyfelt, nosolosw, youknowriad.
See #52920.

File:
1 edited

Legend:

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

    r50761 r50776  
    295295require ABSPATH . WPINC . '/blocks.php';
    296296require ABSPATH . WPINC . '/blocks/index.php';
     297require ABSPATH . WPINC . '/block-editor.php';
    297298require ABSPATH . WPINC . '/block-patterns.php';
    298299require ABSPATH . WPINC . '/class-wp-block-supports.php';
Note: See TracChangeset for help on using the changeset viewer.