mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@51056 602fd350-edb4-49c9-b593-d223f7449a82
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