[wp-trac] [WordPress Trac] #59574: Blocks: No toggle shown for hooked blocks added via filter
WordPress Trac
noreply at wordpress.org
Fri Feb 2 10:37:39 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):
Thinking a bit more about this: We might not actually have to "construct"
entities via query args to pass to the filter. Our use case is inside the
editor, which has information readily available about what template or
navigation menu it is editing; we just need to pass that template's or nav
menu's ID to the endpoint, which can then look up the matching template or
nav menu and pass it as context to the filter.
(It might get trickier if it's a newly created template or nav menu.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59574#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list