Make WordPress Core

Changeset 57353


Ignore:
Timestamp:
01/25/2024 12:46:04 PM (6 months ago)
Author:
youknowriad
Message:

Editor: Add video and audio pattern categories.

More categories, better organization for patterns
as they grow and power more WordPress websites.

Props aaronrobertshaw, get_dave.
Fixes #60342.

File:
1 edited

Legend:

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

    r57102 r57353  
    134134            'label'       => _x( 'Media', 'Block pattern category' ),
    135135            'description' => __( 'Different layouts containing video or audio.' ),
     136        )
     137    );
     138    register_block_pattern_category(
     139        'videos',
     140        array(
     141            'label'       => _x( 'Videos', 'Block pattern category' ),
     142            'description' => __( 'Different layouts containing videos.' ),
     143        )
     144    );
     145    register_block_pattern_category(
     146        'audio',
     147        array(
     148            'label'       => _x( 'Audio', 'Block pattern category' ),
     149            'description' => __( 'Different layouts containing audio.' ),
    136150        )
    137151    );
Note: See TracChangeset for help on using the changeset viewer.