changeset 16 | a86126ab1dd4 |
parent 9 | 177826044cd9 |
child 21 | 48c4eec2b7e6 |
--- a/wp/wp-includes/blocks/shortcode.php Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/blocks/shortcode.php Tue Dec 15 13:49:49 2020 +0100 @@ -21,12 +21,11 @@ * Registers the `core/shortcode` block on server. */ function register_block_core_shortcode() { - register_block_type( - 'core/shortcode', + register_block_type_from_metadata( + __DIR__ . '/shortcode', array( 'render_callback' => 'render_block_core_shortcode', ) ); } - add_action( 'init', 'register_block_core_shortcode' );