Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Fix WP_HTML_Tag_Processor imports #162

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

ockham
Copy link
Collaborator

@ockham ockham commented Feb 27, 2023

During preparation for the WP 6.2 release, the HTML Tag Processor files inside the Gutenberg plugin were moved from lib/experimental/html/ to lib/compat/wordpress-6.2/html-api/.

This PR updates the import locations accordingly, and sort of "centralizes" them, so we only reference the external dependency in one file (and can potentially later to point to e.g. lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php, which has some features added after the WP 6.2 Feature Freeze, if needed).

See #161 for more context.

@ockham ockham requested review from DAreRodz and a team February 27, 2023 13:29
@ockham ockham self-assigned this Feb 27, 2023
Copy link
Contributor

@SantosGuillamot SantosGuillamot left a comment

Choose a reason for hiding this comment

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

It looks great to me, Bernie 🙂

I guess this requirement doesn't make sense anymore. Should we remove it or require src/directives/wp-html.php instead?

@ockham
Copy link
Collaborator Author

ockham commented Feb 27, 2023

I guess this requirement doesn't make sense anymore. Should we remove it or require src/directives/wp-html.php instead?

Ah, nice find! I missed that one, and that file isn't covered by unit tests 😬

I've replaced it with src/directives/wp-html.php in e4ea115, since we are creating a WP_HTML_Tag_Processor object further down in that file 😄

@SantosGuillamot
Copy link
Contributor

LGTM! 🙂

@ockham ockham merged commit 22065df into main-wp-directives-plugin Feb 27, 2023
@ockham ockham deleted the fix/html-tag-processor-imports branch February 27, 2023 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants