| 1 |
<?php |
| 2 |
/** |
| 3 |
* Server-side rendering of the `core/post-comment` block. |
| 4 |
* |
| 5 |
* @package WordPress |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Registers the `core/post-comment` block on the server. |
| 10 |
* We need to do this to make context available for inner blocks. |
| 11 |
*/ |
| 12 |
function gutenberg_register_block_core_post_comment() { |
| 13 |
register_block_type_from_metadata( |
| 14 |
__DIR__ . '/post-comment' |
| 15 |
); |
| 16 |
} |
| 17 |
add_action( 'init', 'gutenberg_register_block_core_post_comment', 20 ); |
| 18 |
|