From f602432a61570ebd3cdfb2738230da7dea7c0e17 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 20 Nov 2024 09:58:52 +0100 Subject: [PATCH] Add back Token Map 6.7 compat layer --- lib/load.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/load.php b/lib/load.php index 3fc97d50ecc76..8fbf7d1f8eee7 100644 --- a/lib/load.php +++ b/lib/load.php @@ -65,6 +65,9 @@ function gutenberg_is_experiment_enabled( $name ) { require __DIR__ . '/compat/plugin/edit-site-routes-backwards-compat.php'; require __DIR__ . '/compat/plugin/fonts.php'; +// The Token Map was created to support the HTML API. It must be loaded before it. +require __DIR__ . '/compat/wordpress-6.7/class-gutenberg-token-map-6-7.php'; + // Type annotations were added in 6.7 so every file is updated. require __DIR__ . '/compat/wordpress-6.7/html-api/class-gutenberg-html-active-formatting-elements-6-7.php'; require __DIR__ . '/compat/wordpress-6.7/html-api/class-gutenberg-html-attribute-token-6-7.php';