[wp-trac] [WordPress Trac] #49387: Run pre_render_block filter in block-renderer REST controller

WordPress Trac noreply at wordpress.org
Thu Feb 20 01:22:48 UTC 2020


#49387: Run pre_render_block filter in block-renderer REST controller
--------------------------------------+-------------------------
 Reporter:  kadamwhite                |       Owner:  kadamwhite
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.4
Component:  Editor                    |     Version:  5.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 +1 to committing this then, we could always switch to using `render_block`
 later if need, I don't think this blocks that in any way.

 What is this line doing in the patch? `$block_type =
 WP_Block_Type_Registry::get_instance()->get_registered( self::$block_name
 );` I think it could be removed?

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


More information about the wp-trac mailing list