CoreFiles by mySites.guru
index.php29 lines, 779 bytes, from wordpress-6.2.zip
Raw History Compare with 6.1.16
md5
9bd18ca5dedf9f05b1c6d8372e6d7318
sha1
9114c1e1138157a2255745a025c7c23c09ae966d
sha256
8e36bd81884267c463d815561cb3825d75eb3246805e65492c7f4d98e1614c04
<?php
/**
 * Used to set up all core blocks used with the block editor.
 *
 * @package WordPress
 */

define( 'BLOCKS_PATH', ABSPATH . WPINC . '/blocks/' );

// Include files required for core blocks registration.
require BLOCKS_PATH . 'legacy-widget.php';
require BLOCKS_PATH . 'widget-group.php';
require BLOCKS_PATH . 'require-dynamic-blocks.php';

/**
 * Registers core block types using metadata files.
 * Dynamic core blocks are registered separately.
 *
 * @since 5.5.0
 */
function register_core_block_types_from_metadata() {
	$block_folders = require BLOCKS_PATH . 'require-static-blocks.php';
	foreach ( $block_folders as $block_folder ) {
		register_block_type(
			BLOCKS_PATH . $block_folder
		);
	}
}
add_action( 'init', 'register_core_block_types_from_metadata' );

The same content is in 54 releases, WordPress 6.1-beta1 to 6.2.15. See them all, or every version of this file.