[wp-trac] [WordPress Trac] #48104: Add the gutenberg_provide_render_callback_with_block_object shim to core

WordPress Trac noreply at wordpress.org
Fri Jan 31 19:32:35 UTC 2020


#48104: Add the gutenberg_provide_render_callback_with_block_object shim to core
-------------------------------------------------+-------------------------
 Reporter:  andraganescu                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.4
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-dev-   |     Focuses:
  note needs-docs                                |
-------------------------------------------------+-------------------------

Comment (by andraganescu):

 @aduth @jorgefilipecosta
 [https://github.com/WordPress/gutenberg/pull/19991 here is a PR]
 implementing the hook into the `render_block` filter. It renders fine
 without the shim, so that is an option - forgot how PR's link to Trac!

 Not sure about the fact that we will call one function for every block
 render, cost should be minimal since we bail early if the block is not the
 one we need.

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


More information about the wp-trac mailing list