[wp-trac] [WordPress Trac] #65008: Block Hooks / RTC: Auto-inserted blocks duplicated on page refresh or collaborator join

WordPress Trac noreply at wordpress.org
Wed Apr 8 12:25:01 UTC 2026


#65008: Block Hooks / RTC: Auto-inserted blocks duplicated on page refresh or
collaborator join
-----------------------------+------------------------------
 Reporter:  Bernhard Reiter  |       Owner:  Bernhard Reiter
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  7.0
Component:  Editor           |     Version:  trunk
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Changes (by jonsurrell):

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


Comment:

 In [changeset:"62219" 62219]:
 {{{
 #!CommitTicketReference repository="" revision="62219"
 Block Hooks: Set ignored blocks meta in REST API response.

 Set `_wp_ignored_hooked_blocks` post meta in the REST API response sent
 from post-like endpoints that support Block Hooks (see
 `rest_block_hooks_post_types` filter).

 Previously, it was enough to set that post meta on write (i.e. save to
 DB). However, due to the way real-time collaboration syncs posts and
 reconciles them with content received from the server side, this
 information is now vital on the client side to ensure hooked blocks aren't
 duplicated.

 Developed in https://github.com/WordPress/wordpress-develop/pull/11410.

 Props bernhard-reiter, czarate, ingeniumed.
 Fixes #65008.
 }}}

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


More information about the wp-trac mailing list