Skip to content

Commit

Permalink
Fix typo in default category template's description
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jul 21, 2022
1 parent 5c20d05 commit 485cac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/compat/wordpress-6.1/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ function gutenberg_get_default_block_template_types( $default_template_types ) {
'description' => __( 'The default template for displaying any single post or attachment.', 'gutenberg' ),
);
}
if ( isset( $default_template_types['category'] ) ) {
$default_template_types['category'] = array(
'title' => _x( 'Category', 'Template name', 'gutenberg' ),
'description' => __( 'Displays latest posts from a single post category.', 'gutenberg' ),
);
}
return $default_template_types;
}
add_filter( 'default_template_types', 'gutenberg_get_default_block_template_types', 10 );
Expand Down

0 comments on commit 485cac5

Please sign in to comment.