wp/wp-includes/blocks/block.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    27 	}
    27 	}
    28 
    28 
    29 	return do_blocks( $reusable_block->post_content );
    29 	return do_blocks( $reusable_block->post_content );
    30 }
    30 }
    31 
    31 
    32 register_block_type(
    32 /**
    33 	'core/block',
    33  * Registers the `core/block` block.
    34 	array(
    34  */
    35 		'attributes'      => array(
    35 function register_block_core_block() {
    36 			'ref' => array(
    36 	register_block_type_from_metadata(
    37 				'type' => 'number',
    37 		__DIR__ . '/block',
    38 			),
    38 		array(
    39 		),
    39 			'render_callback' => 'render_block_core_block',
    40 
    40 		)
    41 		'render_callback' => 'render_block_core_block',
    41 	);
    42 	)
    42 }
    43 );
    43 add_action( 'init', 'register_block_core_block' );