Make WordPress Core


Ignore:
Timestamp:
06/01/2021 11:08:29 PM (5 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-admin/load-styles.php

    r47855 r51056  
    1414
    1515define( 'WPINC', 'wp-includes' );
     16define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
    1617
    1718require ABSPATH . 'wp-admin/includes/noop.php';
     19require ABSPATH . WPINC . '/theme.php';
     20require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
    1821require ABSPATH . WPINC . '/script-loader.php';
    1922require ABSPATH . WPINC . '/version.php';
Note: See TracChangeset for help on using the changeset viewer.