Skip to content

Commit

Permalink
Clean the patterns list to include in core
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 1, 2020
1 parent 7f8b9da commit 0bb4624
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 96 deletions.
10 changes: 0 additions & 10 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,25 +725,15 @@ function gutenberg_extend_settings_link_color( $settings ) {
if ( class_exists( 'WP_Block_Patterns_Registry' ) && ! WP_Block_Patterns_Registry::get_instance()->is_registered( 'text-two-columns' ) ) {
register_block_pattern( 'core/text-two-columns', gutenberg_load_block_pattern( 'text-two-columns' ) );
register_block_pattern( 'core/two-buttons', gutenberg_load_block_pattern( 'two-buttons' ) );
register_block_pattern( 'core/cover-abc', gutenberg_load_block_pattern( 'cover-abc' ) );
register_block_pattern( 'core/two-images', gutenberg_load_block_pattern( 'two-images' ) );
register_block_pattern( 'core/hero-two-columns', gutenberg_load_block_pattern( 'hero-two-columns' ) );
register_block_pattern( 'core/numbered-features', gutenberg_load_block_pattern( 'numbered-features' ) );
register_block_pattern( 'core/its-time', gutenberg_load_block_pattern( 'its-time' ) );
register_block_pattern( 'core/hero-right-column', gutenberg_load_block_pattern( 'hero-right-column' ) );
register_block_pattern( 'core/testimonials', gutenberg_load_block_pattern( 'testimonials' ) );
register_block_pattern( 'core/features-services', gutenberg_load_block_pattern( 'features-services' ) );
}

/*
* Register default pattern categories if not registered in Core already.
*/
if ( class_exists( 'WP_Block_Pattern_Categories_Registry' ) ) {
register_block_pattern_category( 'text', array( 'label' => _x( 'Text', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'hero', array( 'label' => _x( 'Hero', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'columns', array( 'label' => _x( 'Columns', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'buttons', array( 'label' => _x( 'Buttons', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'gallery', array( 'label' => _x( 'Gallery', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'features', array( 'label' => _x( 'Features', 'Block pattern category', 'gutenberg' ) ) );
register_block_pattern_category( 'testimonials', array( 'label' => _x( 'Testimonials', 'Block pattern category', 'gutenberg' ) ) );
}
12 changes: 0 additions & 12 deletions lib/patterns/cover-abc.php

This file was deleted.

12 changes: 0 additions & 12 deletions lib/patterns/features-services.php

This file was deleted.

12 changes: 0 additions & 12 deletions lib/patterns/hero-right-column.php

This file was deleted.

12 changes: 0 additions & 12 deletions lib/patterns/hero-two-columns.php

This file was deleted.

12 changes: 0 additions & 12 deletions lib/patterns/its-time.php

This file was deleted.

12 changes: 0 additions & 12 deletions lib/patterns/numbered-features.php

This file was deleted.

Loading

0 comments on commit 0bb4624

Please sign in to comment.