[wp-trac] [WordPress Trac] #60506: Block Hooks: Newly inserted anchor block doesn't ignore hooked blocks set by filter

WordPress Trac noreply at wordpress.org
Tue Feb 13 15:10:36 UTC 2024


#60506: Block Hooks: Newly inserted anchor block doesn't ignore hooked blocks set
by filter
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  Bernhard Reiter
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  6.5
Component:  General          |     Version:  trunk
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Changes (by Bernhard Reiter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57627" 57627]:
 {{{
 #!CommitTicketReference repository="" revision="57627"
 Block Hooks: Set `ignoredHookedBlocks` metadata upon saving.

 Decouple hooked blocks insertion from setting the
 `metadata.ignoredHookedBlocks` attribute on anchor blocks, and perform the
 latter step upon saving a template or template part to the database. This
 ensures that anchor blocks that have been newly added to a template (or
 part) on the client side will also get `ignoredHookedBlocks` metadata set
 correctly, thus preserving editor/front-end parity. Hooked block
 insertion, on the other hand, will continue to happen upon ''reading'' a
 template (or part).

 Props gziolo, tomjcafferkey.
 Fixes #60506.
 }}}

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


More information about the wp-trac mailing list