[wp-trac] [WordPress Trac] #60580: Block Hooks: Allow hooked_block filter(s) to return null

WordPress Trac noreply at wordpress.org
Tue Feb 20 12:33:44 UTC 2024


#60580: Block Hooks: Allow hooked_block filter(s) to return null
--------------------------------------+---------------------
 Reporter:  Bernhard Reiter           |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.5
Component:  General                   |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by swissspidy):

 Since these are new filters I'd prefer to have theme correct from the
 beginning, so yeah I'm fine with adding this. Are you able to finish this
 up before beta 2?

 Please note that you still need to update the docblock to indicate that
 `$parsed_hooked_block` can be an array or null, as per my comment on the
 PR.

 Also, it's @joshuatf on here as well.

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


More information about the wp-trac mailing list