Skip to content

Commit

Permalink
Load the BC Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya committed Jul 11, 2023
1 parent dcef9bd commit 71f09ac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 71f09ac

Please sign in to comment.