diff --git a/lib/load.php b/lib/load.php index 7772cac90e15e..ad56b7651e7ef 100644 --- a/lib/load.php +++ b/lib/load.php @@ -91,6 +91,12 @@ function gutenberg_is_experiment_enabled( $name ) { if ( ! class_exists( 'WP_Block_Template ' ) ) { require __DIR__ . '/full-site-editing/class-wp-block-template.php'; } + +// These are used by some FSE features +// as well as global styles. +require __DIR__ . '/class-wp-theme-json.php'; +require __DIR__ . '/class-wp-theme-json-resolver.php'; + require __DIR__ . '/full-site-editing/full-site-editing.php'; require __DIR__ . '/full-site-editing/block-templates.php'; require __DIR__ . '/full-site-editing/default-template-types.php'; @@ -109,8 +115,6 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/navigation.php'; require __DIR__ . '/navigation-page.php'; require __DIR__ . '/experiments-page.php'; -require __DIR__ . '/class-wp-theme-json.php'; -require __DIR__ . '/class-wp-theme-json-resolver.php'; require __DIR__ . '/global-styles.php'; require __DIR__ . '/query-utils.php';