[wp-trac] [WordPress Trac] #60759: Block Hooks: Harmonize ignoredHookedBlocks metadata injection logic

WordPress Trac noreply at wordpress.org
Mon Jun 3 12:36:04 UTC 2024


#60759: Block Hooks: Harmonize ignoredHookedBlocks metadata injection logic
--------------------------------------+------------------------------
 Reporter:  Bernhard Reiter           |       Owner:  Bernhard Reiter
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.6
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by Bernhard Reiter):

 In [changeset:"58292" 58292]:
 {{{
 #!CommitTicketReference repository="" revision="58292"
 Block Hooks: Move Posts controller hooked blocks injection logic.

 In a similar vein as [58291], this changeset introduces a new
 `insert_hooked_blocks_into_rest_response` function and hooks it to the
 `rest_prepare_wp_navigation` filter.

 This is part of an ongoing effort to move Block Hooks related code out of
 the Navigation block. Specifically,
 `insert_hooked_blocks_into_rest_response` is based on
 `block_core_navigation_insert_hooked_blocks_into_rest_response`.
 Eventually, it will be possible to deprecate the latter.

 Follow-up to [58291].

 See #60759.
 }}}

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


More information about the wp-trac mailing list