#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 fixed-major dev-reviewed has-unit-tests |
| 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 (14)
This ticket was mentioned in PR #10701 on WordPress/wordpress-develop by @dmsnell.
5 weeks ago
#1
- Keywords has-patch added
#3
@
5 weeks ago
- Keywords dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening for review for backport into 6.9.1 branch.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
4 weeks ago
#6
@
4 weeks ago
@jonsurrell @westonruter since both of you worked on the original ticket (#61401) for the Block Processor, would you be able to review this for backport?
#10
@
3 weeks ago
- Keywords dev-reviewed added
Adding dev-reviewed based on @jonsurrell's last comment.
Minor, but I do think a PR could be helpful to ensure that tests pass on php7.2 & 7.3 since those aren't being run by trunk
This ticket was mentioned in PR #10773 on WordPress/wordpress-develop by @jonsurrell.
3 weeks ago
#11
- Keywords has-unit-tests added
# This is a backport testing PR for [61452].
Previously, the WP_Block_Processor class was making a mistake in mis-reporting whether a token matches a block type when #innerHTML spans are involved.
This patch fixes the logic, which was originally written before a distinction between inner HTML and top-level freeform content was built.
Developed in https://github.com/WordPress/wordpress-develop/pull/10701.
Discussed in https://core.trac.wordpress.org/ticket/64485.
Trac ticket: https://core.trac.wordpress.org/ticket/64485
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.