mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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' ) ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user