[wp-trac] [WordPress Trac] #61185: Interactivity API: Move directive processing to `WP_Block` class

WordPress Trac noreply at wordpress.org
Wed May 29 11:55:43 UTC 2024


#61185: Interactivity API: Move directive processing to `WP_Block` class
-------------------------------+---------------------
 Reporter:  gziolo             |       Owner:  gziolo
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  6.6
Component:  Interactivity API  |     Version:  6.5
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------
Changes (by gziolo):

 * owner:  (none) => gziolo
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58234" 58234]:
 {{{
 #!CommitTicketReference repository="" revision="58234"
 Interactivity API: Move directive processing to `WP_Block` class

 Integrates the directives processing into the WP_Block class. It removes
 the overhead of running additional hooks when rendering blocks and
 simplifies the way we detect whether the directive processing should run
 on an interactive region of the produced final HTML for the blocks.

 Introduces `interactivity_process_directives` filter to offer a way to opt
 out from directives processing. It's needed in Gutenberg:
 https://github.com/WordPress/gutenberg/pull/62095.

 Props gziolo, cbravobernal.
 Fixes #61185.
 }}}

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


More information about the wp-trac mailing list