Skip to content

Commit

Permalink
Remove Images in favour of existing Gallery category
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Oct 13, 2023
1 parent 6963fa8 commit f0cfaad
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/compat/wordpress-6.5/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,7 @@
* @return void
*/
function gutenberg_register_media_pattern_categories() {
// Update the default gallery category to better differentiate it with Images.
unregister_block_pattern_category( 'gallery' );
register_block_pattern_category(
'gallery',
array(
'label' => _x( 'Gallery', 'Block pattern category' ),
'description' => __( 'Different layouts containing a collection of images.' ),
)
);

// Register new categories.
register_block_pattern_category(
'images',
array(
'label' => _x( 'Images', 'Block pattern category' ),
'description' => __( 'Different layouts containing images.' ),
)
);
register_block_pattern_category(
'videos',
array(
Expand Down

0 comments on commit f0cfaad

Please sign in to comment.