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. Built from https://develop.svn.wordpress.org/trunk@51056 git-svn-id: http://core.svn.wordpress.org/trunk@50665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -34,14 +34,6 @@ require ABSPATH . WPINC . '/class.wp-styles.php';
|
||||
/** WordPress Styles Functions */
|
||||
require ABSPATH . WPINC . '/functions.wp-styles.php';
|
||||
|
||||
// get_stylesheet_directory() is used by WP_Theme_JSON_Resolver::theme_has_support().
|
||||
if ( ! function_exists( 'get_stylesheet_directory' ) ) {
|
||||
require_once ABSPATH . WPINC . '/theme.php';
|
||||
}
|
||||
if ( ! class_exists( 'WP_Theme_JSON_Resolver' ) ) {
|
||||
require_once ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers TinyMCE scripts.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user