Skip to content

Commit

Permalink
Unconditionally load the Gutenberg copy of the HTML Tag Processor (#5…
Browse files Browse the repository at this point in the history
…5404)

Temporary fix to resolve breaking tests in `trunk` after the WordPress 6.4 backport.
  • Loading branch information
dmsnell authored Oct 17, 2023
1 parent d7847d1 commit 7cbf38f
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

1 comment on commit 7cbf38f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 7cbf38f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6544482305
📝 Reported issues:

Please sign in to comment.