[wp-trac] [WordPress Trac] #59646: Block Hooks: Enable for user-modified templates/parts/patterns

WordPress Trac noreply at wordpress.org
Tue Oct 17 11:56:31 UTC 2023


#59646: Block Hooks: Enable for user-modified templates/parts/patterns
-----------------------------+-----------------------------
 Reporter:  Bernhard Reiter  |      Owner:  Bernhard Reiter
     Type:  defect (bug)     |     Status:  assigned
 Priority:  normal           |  Milestone:  6.5
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 The biggest tradeoff we made in the implementation of Block Hooks was that
 we had to limit them to templates, template parts, and patterns that
 ''didn't have any user modifications'' (see #59313 for the reason). We
 would like to remove this limitation, so they’ll also work with user-
 modified templates, parts, and patterns.

 The crucial problem we need to solve is to acknowledge if a user has opted
 to remove or persist a hooked block, so that the auto-insertion mechanism
 won't run again and inject an extraneous hooked block on the frontend when
 none is solicited.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59646>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list