Blocks: Add the pre_render_block and render_block_data filters.

At the start of `render_block()`, the `pre_render_block` filter allows the function to be short-circuited, and the `render_block_data` filter is applied to the `$block` parameter before it's processed.

Props kkarpieszuk, pento.
Fixes #45451.


Built from https://develop.svn.wordpress.org/trunk@44553


git-svn-id: http://core.svn.wordpress.org/trunk@44384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast
2019-01-10 23:16:50 +00:00
parent b98affb210
commit 8e2f6a9923
2 changed files with 23 additions and 1 deletions

View File

@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-alpha-44552';
$wp_version = '5.1-alpha-44553';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.