[wp-trac] [WordPress Trac] #59574: Blocks: No toggle shown for hooked blocks added via filter
WordPress Trac
noreply at wordpress.org
Fri Feb 2 09:10:27 UTC 2024
#59574: Blocks: No toggle shown for hooked blocks added via filter
-----------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by Bernhard Reiter):
Replying to [comment:3 Bernhard Reiter]:
> Noting that a fix for #59646 would also fix this issue.
I think I misspoke. Working on
https://github.com/WordPress/gutenberg/pull/58553, I realized that we
still need information on what blocks are hooked to a given anchor blocks
when that anchor block is newly inserted (so set its
`metadata.ignoredHookedBlocks` attribute). In this case, the problem still
applies: We can infer them from the `blockHooks` field of the `block-
types' endpoint, but that is non-contextual; so we won't be able to
correctly set the attribute if any hooked blocks were added (or removed)
by a filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59574#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list