diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index f974f6efbd..89ccada17e 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -206,6 +206,23 @@ function get_default_block_template_types() { ), ); + // Add a title and description to post format templates. + $post_formats = get_post_format_strings(); + foreach ( $post_formats as $post_format_slug => $post_format_name ) { + $default_template_types[ 'taxonomy-post_format-post-format-' . $post_format_slug ] = array( + 'title' => sprintf( + /* translators: %s: Post format name. */ + _x( 'Post Format: %s', 'Template name' ), + $post_format_name + ), + 'description' => sprintf( + /* translators: %s: Post format name. */ + __( 'Displays the %s post format archive.' ), + $post_format_name + ), + ); + } + /** * Filters the list of default template types. *