[wp-trac] [WordPress Trac] #59551: Respect non-null values from the `pre_render_block` filter

WordPress Trac noreply at wordpress.org
Thu Oct 5 18:10:47 UTC 2023


#59551: Respect non-null values from the `pre_render_block` filter
--------------------------+------------------------------
 Reporter:  danieliser    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by danieliser):

 Ugg, no edit, forgot to add, this is what Documentation says about that
 filter:

 > Allows render_block() to be short-circuited, by returning a non-null
 value.

 Thus these `return null;` don't respect the documented pattern.

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


More information about the wp-trac mailing list