Edit File by line
/home/barbar84/public_h.../wp-inclu...
File: block-patterns.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Register the block patterns and block patterns categories
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @since 5.5.0
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
add_theme_support( 'core-block-patterns' );
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* Registers the core block patterns and categories.
[11] Fix | Delete
*
[12] Fix | Delete
* @since 5.5.0
[13] Fix | Delete
* @private
[14] Fix | Delete
*/
[15] Fix | Delete
function _register_core_block_patterns_and_categories() {
[16] Fix | Delete
$should_register_core_patterns = get_theme_support( 'core-block-patterns' );
[17] Fix | Delete
[18] Fix | Delete
if ( $should_register_core_patterns ) {
[19] Fix | Delete
$core_block_patterns = array(
[20] Fix | Delete
'text-two-columns',
[21] Fix | Delete
'two-buttons',
[22] Fix | Delete
'two-images',
[23] Fix | Delete
'text-two-columns-with-images',
[24] Fix | Delete
'text-three-columns-buttons',
[25] Fix | Delete
'large-header',
[26] Fix | Delete
'large-header-button',
[27] Fix | Delete
'three-buttons',
[28] Fix | Delete
'heading-paragraph',
[29] Fix | Delete
'quote',
[30] Fix | Delete
);
[31] Fix | Delete
[32] Fix | Delete
foreach ( $core_block_patterns as $core_block_pattern ) {
[33] Fix | Delete
register_block_pattern(
[34] Fix | Delete
'core/' . $core_block_pattern,
[35] Fix | Delete
require __DIR__ . '/block-patterns/' . $core_block_pattern . '.php'
[36] Fix | Delete
);
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
register_block_pattern_category( 'buttons', array( 'label' => _x( 'Buttons', 'Block pattern category' ) ) );
[41] Fix | Delete
register_block_pattern_category( 'columns', array( 'label' => _x( 'Columns', 'Block pattern category' ) ) );
[42] Fix | Delete
register_block_pattern_category( 'gallery', array( 'label' => _x( 'Gallery', 'Block pattern category' ) ) );
[43] Fix | Delete
register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) );
[44] Fix | Delete
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function