[wp-trac] [WordPress Trac] #59574: Blocks: No toggle shown for hooked blocks added via filter

WordPress Trac noreply at wordpress.org
Mon Feb 5 08:47:28 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 gziolo):

 > 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.

 How much is that an issue? What are the use cases where that would fail?
 What are the consequences?

 The technical solution explored is very complex and depends on several
 moving parts. We need to keep in mind that the editor is only an
 approximation of what we will see on the frontend. In particular, when
 using WP hook, there might be nuances that change depending on the
 currently browsed page.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59574#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list