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

WordPress Trac noreply at wordpress.org
Tue Mar 12 13:35:59 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):

 With [https://github.com/WordPress/gutenberg/pull/59396 this Gutenberg PR]
 merged and included in WP 6.5 RC1, the toggle is now displayed for
 ''modified'' layouts.

 In order to also display it for ''unmodified'' ones, we'll have to run
 [https://github.com/WordPress/wordpress-
 develop/blob/6b5ac38b182079f2d732fc4d50521e02407ee031/src/wp-includes
 /block-template-utils.php#L1471-L1472 injection of the
 `ignoredHookedBlocks` metadata attribute] not only upon writing to the
 database, but also upon reading from it (i.e. in the respective
 Templates/Patterns/Navigation endpoints' `get_item()` methods, in addition
 to `insert_hooked_blocks`).

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


More information about the wp-trac mailing list