mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-02 06:57:32 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5bd13e7cc1
commit
1fdafcaab8
@ -135,6 +135,20 @@ function _register_core_block_patterns_and_categories() {
|
||||
'description' => __( 'Different layouts containing video or audio.' ),
|
||||
)
|
||||
);
|
||||
register_block_pattern_category(
|
||||
'videos',
|
||||
array(
|
||||
'label' => _x( 'Videos', 'Block pattern category' ),
|
||||
'description' => __( 'Different layouts containing videos.' ),
|
||||
)
|
||||
);
|
||||
register_block_pattern_category(
|
||||
'audio',
|
||||
array(
|
||||
'label' => _x( 'Audio', 'Block pattern category' ),
|
||||
'description' => __( 'Different layouts containing audio.' ),
|
||||
)
|
||||
);
|
||||
register_block_pattern_category(
|
||||
'posts',
|
||||
array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user