Skip to content

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

Merged
adamziel merged 3 commits intotrunkfrom
improve-block-markup-processor
Jan 9, 2025
Merged

[Data Liberation] Recognize self-closing blocks in WP_Block_Markup_Processor#2120
adamziel merged 3 commits intotrunkfrom
improve-block-markup-processor

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

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant