From 2905c5a9bc2b7c843af8983ea18db43bb4167731 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Jul 2021 14:46:48 +0000 Subject: [PATCH] Themes: Add "Template Editing" to the list of WordPress theme features. Follow-up to [meta11158]. Props poena, desrosj. Fixes #53556. See #meta5802. git-svn-id: https://develop.svn.wordpress.org/trunk@51510 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/theme.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index ade91d741a..772e66f139 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -298,6 +298,7 @@ function get_theme_update_available( $theme ) { * @since 5.5.0 Added 'Block Editor Patterns', 'Block Editor Styles', * and 'Full Site Editing' features. * @since 5.5.0 Added 'Wide Blocks' layout option. + * @since 5.8.1 Added 'Template Editing' feature. * * @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true. * @return array Array of features keyed by category with translations keyed by slug. @@ -334,6 +335,7 @@ function get_theme_feature_list( $api = true ) { 'full-width-template' => __( 'Full Width Template' ), 'post-formats' => __( 'Post Formats' ), 'sticky-post' => __( 'Sticky Post' ), + 'template-editing' => __( 'Template Editing' ), 'theme-options' => __( 'Theme Options' ), ),