Make WordPress Core

Changeset 50948


Ignore:
Timestamp:
05/21/2021 11:12:39 AM (4 years ago)
Author:
youknowriad
Message:

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.

Location:
trunk/src/wp-includes
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns.php

    r50794 r50948  
    3535            'media-text-arquitecture',
    3636            'two-buttons',
     37            'query-standard-posts',
     38            'query-medium-posts',
     39            'query-small-posts',
     40            'query-grid-posts',
     41            'query-large-title-posts',
     42            'query-offset-posts',
     43            'social-links-shared-background-color',
    3744        );
    3845
     
    5057    register_block_pattern_category( 'header', array( 'label' => _x( 'Headers', 'Block pattern category' ) ) );
    5158    register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category' ) ) );
     59    register_block_pattern_category( 'query', array( 'label' => __( 'Query', 'Block pattern category' ) ) );
    5260}
Note: See TracChangeset for help on using the changeset viewer.