Skip to content

Commit

Permalink
Unconditionally load the Gutenberg copy of the HTML Tag Processor
Browse files Browse the repository at this point in the history
Temporary fix to resolve breaking tests in `trunk` after the WordPress 6.4 backport.
  • Loading branch information
dmsnell committed Oct 17, 2023
1 parent d7847d1 commit 7661b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* available. Please restrain from investing unnecessary time and effort trying
* to improve this code.
*/
class WP_Directive_Processor extends WP_HTML_Tag_Processor {
class WP_Directive_Processor extends Gutenberg_HTML_Tag_Processor_6_4 {

/**
* An array of root blocks.
Expand Down
2 changes: 1 addition & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function gutenberg_is_experiment_enabled( $name ) {
require __DIR__ . '/compat/plugin/edit-site-routes-backwards-compat.php';
require __DIR__ . '/compat/plugin/footnotes.php';

require __DIR__ . '/compat/wordpress-6.4/html-api/class-gutenberg-html-tag-processor-6-4.php';
if ( ! class_exists( 'WP_HTML_Processor' ) ) {
require __DIR__ . '/compat/wordpress-6.4/html-api/class-gutenberg-html-tag-processor-6-4.php';
require __DIR__ . '/compat/wordpress-6.4/html-api/class-wp-html-active-formatting-elements.php';
require __DIR__ . '/compat/wordpress-6.4/html-api/class-wp-html-open-elements.php';
require __DIR__ . '/compat/wordpress-6.4/html-api/class-wp-html-processor-state.php';
Expand Down

0 comments on commit 7661b21

Please sign in to comment.