Edit File by line
/home/barbar84/www/wp-inclu.../blocks
File: index.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Used to set up all core blocks used with the block editor.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
// Include files required for core blocks registration.
[7] Fix | Delete
require ABSPATH . WPINC . '/blocks/archives.php';
[8] Fix | Delete
require ABSPATH . WPINC . '/blocks/block.php';
[9] Fix | Delete
require ABSPATH . WPINC . '/blocks/calendar.php';
[10] Fix | Delete
require ABSPATH . WPINC . '/blocks/categories.php';
[11] Fix | Delete
require ABSPATH . WPINC . '/blocks/latest-comments.php';
[12] Fix | Delete
require ABSPATH . WPINC . '/blocks/latest-posts.php';
[13] Fix | Delete
require ABSPATH . WPINC . '/blocks/rss.php';
[14] Fix | Delete
require ABSPATH . WPINC . '/blocks/search.php';
[15] Fix | Delete
require ABSPATH . WPINC . '/blocks/shortcode.php';
[16] Fix | Delete
require ABSPATH . WPINC . '/blocks/social-link.php';
[17] Fix | Delete
require ABSPATH . WPINC . '/blocks/tag-cloud.php';
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Registers core block types using metadata files.
[21] Fix | Delete
* Dynamic core blocks are registered separately.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 5.5.0
[24] Fix | Delete
*/
[25] Fix | Delete
function register_core_block_types_from_metadata() {
[26] Fix | Delete
$block_folders = array(
[27] Fix | Delete
'audio',
[28] Fix | Delete
'button',
[29] Fix | Delete
'buttons',
[30] Fix | Delete
'code',
[31] Fix | Delete
'column',
[32] Fix | Delete
'columns',
[33] Fix | Delete
'embed',
[34] Fix | Delete
'file',
[35] Fix | Delete
'freeform',
[36] Fix | Delete
'gallery',
[37] Fix | Delete
'group',
[38] Fix | Delete
'heading',
[39] Fix | Delete
'html',
[40] Fix | Delete
'image',
[41] Fix | Delete
'list',
[42] Fix | Delete
'media-text',
[43] Fix | Delete
'missing',
[44] Fix | Delete
'more',
[45] Fix | Delete
'nextpage',
[46] Fix | Delete
'paragraph',
[47] Fix | Delete
'preformatted',
[48] Fix | Delete
'pullquote',
[49] Fix | Delete
'quote',
[50] Fix | Delete
'separator',
[51] Fix | Delete
'social-links',
[52] Fix | Delete
'spacer',
[53] Fix | Delete
'subhead',
[54] Fix | Delete
'table',
[55] Fix | Delete
'text-columns',
[56] Fix | Delete
'verse',
[57] Fix | Delete
'video',
[58] Fix | Delete
);
[59] Fix | Delete
[60] Fix | Delete
foreach ( $block_folders as $block_folder ) {
[61] Fix | Delete
register_block_type_from_metadata(
[62] Fix | Delete
ABSPATH . WPINC . '/blocks/' . $block_folder
[63] Fix | Delete
);
[64] Fix | Delete
}
[65] Fix | Delete
}
[66] Fix | Delete
add_action( 'init', 'register_core_block_types_from_metadata' );
[67] Fix | Delete
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function