From 71f09acf1ad6b0453b679a1609a85fa26ed108c0 Mon Sep 17 00:00:00 2001 From: hellofromtonya Date: Mon, 10 Jul 2023 14:08:51 -0500 Subject: [PATCH] Load the BC Layer --- lib/load.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/load.php b/lib/load.php index 340a9001304051..ef55c547525ae8 100644 --- a/lib/load.php +++ b/lib/load.php @@ -142,6 +142,21 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/experimental/fonts/class-wp-font-face.php'; require __DIR__ . '/experimental/fonts/class-wp-font-face-resolver.php'; require __DIR__ . '/experimental/fonts/fonts.php'; + + // Load the BC Layer. Do no backport to WP Core. + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-fonts-provider.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-fonts-utils.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-fonts.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-fonts-provider-local.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-fonts-resolver.php'; + require __DIR__ . '/experimental/fonts/bc-layer/fonts-api.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-gutenberg-fonts-api-bc-layer.php'; + require __DIR__ . '/experimental/fonts/bc-layer/webfonts-deprecations.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-webfonts-utils.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-webfonts-provider.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-webfonts-provider-local.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-webfonts.php'; + require __DIR__ . '/experimental/fonts/bc-layer/class-wp-web-fonts.php'; } } elseif ( ! class_exists( 'WP_Fonts' ) ) { // Fonts API files.