Make WordPress Core


Ignore:
Timestamp:
06/01/2021 11:08:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Block Editor: Load the WP_Theme_JSON_Resolver class in wp-admin/load-styles.php.

This ensures correct load order when style concatenation is used, e.g. when SCRIPT_DEBUG is off.

Additionally, make sure the WP_CONTENT_DIR constant is defined for use in get_theme_root() via get_stylesheet_directory().

Follow-up to [50992], [51001], [51013].

Props nosolosw.
See #53175.

File:
1 edited

Legend:

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

    r51021 r51056  
    172172require ABSPATH . WPINC . '/class-wp-theme.php';
    173173require ABSPATH . WPINC . '/class-wp-theme-json.php';
     174require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
    174175require ABSPATH . WPINC . '/class-wp-block-template.php';
    175176require ABSPATH . WPINC . '/block-template-utils.php';
Note: See TracChangeset for help on using the changeset viewer.