Skip to content

Commit

Permalink
[Patterns]: Remove bundled patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 10, 2022
1 parent b333d1d commit 12f7384
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 633 deletions.
45 changes: 0 additions & 45 deletions lib/compat/wordpress-6.2/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,51 +74,6 @@ function gutenberg_register_core_block_patterns_and_categories() {
}
add_action( 'init', 'gutenberg_register_core_block_patterns_and_categories' );

/**
* Registers Gutenberg-bundled patterns, with a focus on headers and footers
* for site editing.
*
* @since 6.2.0
* @access private
*/
function gutenberg_register_core_block_patterns() {
if ( ! get_theme_support( 'core-block-patterns' ) ) {
return;
}

$core_block_patterns = array(
'centered-footer',
'centered-footer-with-social-links',
'centered-header',
'centered-logo-in-navigation',
'footer-with-background-color-and-three-columns',
'footer-with-credit-line-and-navigation',
'footer-with-large-font-size',
'footer-with-navigation-and-credit-line',
'footer-with-search-site-title-and-credit-line',
'footer-with-site-title-and-credit-line',
'header-with-large-font-size',
'left-aligned-footer',
'right-aligned-footer',
'simple-header',
'simple-header-inside-image',
'simple-header-with-background-color',
'simple-header-with-image',
'simple-header-with-tagline',
'simple-header-with-tagline-2',
'site-title-and-menu-button',
'site-title-and-vertical-navigation',
);

foreach ( $core_block_patterns as $core_block_pattern ) {
register_block_pattern(
'core/' . $core_block_pattern,
require __DIR__ . '/block-patterns/' . $core_block_pattern . '.php'
);
}
}
add_action( 'init', 'gutenberg_register_core_block_patterns' );

/**
* Register any patterns that the active theme may provide under its
* `./patterns/` directory. Each pattern is defined as a PHP file and defines
Expand Down

This file was deleted.

25 changes: 0 additions & 25 deletions lib/compat/wordpress-6.2/block-patterns/centered-footer.php

This file was deleted.

19 changes: 0 additions & 19 deletions lib/compat/wordpress-6.2/block-patterns/centered-header.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 12f7384

Please sign in to comment.