Skip to content

Commit

Permalink
map more categories
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 5, 2022
1 parent a4d01b4 commit d3337b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.2/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Registers the block pattern categories.
*/
function gutenberg_register_core_block_patterns_and_categories() {
function gutenberg_register_core_block_patterns_categories() {
register_block_pattern_category(
'banner',
array(
Expand Down Expand Up @@ -138,7 +138,7 @@ function gutenberg_register_core_block_patterns_and_categories() {
)
);
}
add_action( 'init', 'gutenberg_register_core_block_patterns_and_categories' );
add_action( 'init', 'gutenberg_register_core_block_patterns_categories' );

/**
* Registers Gutenberg-bundled patterns, with a focus on headers and footers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Gutenberg_REST_Block_Patterns_Controller_6_2 extends Gutenberg_REST_Block_
*/
protected static $categories_migration = array(
'buttons' => 'call-to-action',
'columns' => 'media',
'text' => 'media',
'query' => 'posts',
);

Expand Down

0 comments on commit d3337b8

Please sign in to comment.