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

[Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor #2120

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Jan 9, 2025

Adds a is_self_closing_block() method to WP_Block_Markup_Processor to enable detection and rewriting of block comments such as

<!-- wp:core/separator /-->

This will be needed in the markdown processor.

A part of #1894.

Testing instructions

CI. See the unit tests updated in this PR.

…ocessor

Adds a is_self_closing_block() method to WP_Block_Markup_Processor to
enable detection and rewriting of block comments such as

```html
<!-- wp:core/separator /-->
```

This will be needed in the markdown processor.

A part of #1894.

 ## Testing instructions

CI. See the unit tests updated in this PR.
@adamziel adamziel merged commit cbd8ea4 into trunk Jan 9, 2025
6 checks passed
@adamziel adamziel deleted the improve-block-markup-processor branch January 9, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant