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 20, 2022
1 parent 4cc4c3c commit 803f7c5
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 @@ -140,51 +140,6 @@ function gutenberg_register_core_block_patterns_categories() {
}
add_action( 'init', 'gutenberg_register_core_block_patterns_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

1 comment on commit 803f7c5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3738605718
📝 Reported issues:

Please sign in to comment.