Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Block Settings/Support: Use Tag Processor to inject class name on wrapper." #47350

Merged

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Jan 23, 2023

What?

Reverts #46625.

Why?

See #47349.

How?

It's a simple revert.

Testing Instructions

Quoting #46625:

Hopefully the unit tests cover this.
Otherwise try to use block supports and make sure that the expected classes appear where they are and not where they shouldn't be.

#46625 was a refactor to replace a hand-crafted RegEx with use of the WP_HTML_Tag_Processor. Thus, it shouldn't have introduced any semantic changes; it might've fixed some edge cases (see its PR desc). However, since its main goal wasn't to be a bugfix, reverting it should be okay, since we're simply returning to the previous behavior, which should also be fine.

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Thank you, @ockham!

@ockham ockham merged commit e1ccb61 into trunk Jan 23, 2023
@ockham ockham deleted the revert/update/block-support-settings-use-tag-processor branch January 23, 2023 15:20
@github-actions github-actions bot added this to the Gutenberg 15.1 milestone Jan 23, 2023
ntsekouras added a commit that referenced this pull request Jan 30, 2023
ntsekouras added a commit that referenced this pull request Jan 30, 2023
@juanmaguitar juanmaguitar added the [Type] Regression Related to a regression in the latest release label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Regression Related to a regression in the latest release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants