Opened 22 hours ago
Closed 19 hours ago
#64485 closed defect (bug) (fixed)
WP_Block_Processor should indicate that inner HTML matches no block type.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9.1 | Priority: | normal |
| Severity: | normal | Version: | 6.9 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | Cc: |
Description
When the Block Processor was introduced there was a latent bug in the is_block_type() method. It misreports the block types when inner HTML is involved, as it was written before the concepts of inner HTML and top-level freeform content were separated.
It should only report block type matches for actual block delimiters and for top-level freeform content.
Change History (2)
This ticket was mentioned in PR #10701 on WordPress/wordpress-develop by @dmsnell.
22 hours ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: Core-64485
## Status
## Summary
Previously, the
WP_Block_Processorclass was making a mistake in mis-reporting whether a token matches a block type when#innerHTMLspans are involved.This patch fixes the logic, which was originally written before a distinction between inner HTML and top-level freeform content was built.