Block Patterns: Include the Query and Social Icons block patterns from Gutenberg 10.7.0.

These block patterns are considered "core" block patterns and removed
when a them opts out of the core-block-patterns theme support flag.

Props ntsekouras.
Fixes #53248.


git-svn-id: https://develop.svn.wordpress.org/trunk@50948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Riad Benguella
2021-05-21 11:12:39 +00:00
parent 450df57289
commit b7c75ec920
8 changed files with 198 additions and 0 deletions

View File

@@ -34,6 +34,13 @@ function _register_core_block_patterns_and_categories() {
'text-two-columns',
'media-text-arquitecture',
'two-buttons',
'query-standard-posts',
'query-medium-posts',
'query-small-posts',
'query-grid-posts',
'query-large-title-posts',
'query-offset-posts',
'social-links-shared-background-color',
);
foreach ( $core_block_patterns as $core_block_pattern ) {
@@ -49,4 +56,5 @@ function _register_core_block_patterns_and_categories() {
register_block_pattern_category( 'gallery', array( 'label' => _x( 'Gallery', 'Block pattern category' ) ) );
register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) );
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
register_block_pattern_category( 'query', array( 'label' => __( 'Query', 'Block pattern category' ) ) );
}