From 7fcb660015351c3c5eb6a15c7cfce7bf71b55f1c Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Thu, 14 May 2020 14:41:02 +0000 Subject: [PATCH] Themes: Add "Block Editor Patterns" and "Full Site Editing" to the list of WordPress theme features. Follow-up to [meta9876]. Props dingo_d. Fixes #50164. See #meta5212. git-svn-id: https://develop.svn.wordpress.org/trunk@47797 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/theme.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index c89dbb3044..4da4eafb7f 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -277,7 +277,9 @@ function get_theme_update_available( $theme ) { * @since 4.9.0 Removed 'BuddyPress', 'Custom Menu', 'Flexible Header', * 'Front Page Posting', 'Microformats', 'RTL Language Support', * 'Threaded Comments', and 'Translation Ready' features. - * @since 5.5.0 Added 'Block Editor Styles' and 'Wide Blocks' features. + * @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. * * @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. @@ -300,6 +302,7 @@ function get_theme_feature_list( $api = true ) { __( 'Features' ) => array( 'accessibility-ready' => __( 'Accessibility Ready' ), + 'block-patterns' => __( 'Block Editor Patterns' ), 'block-styles' => __( 'Block Editor Styles' ), 'custom-background' => __( 'Custom Background' ), 'custom-colors' => __( 'Custom Colors' ), @@ -309,6 +312,7 @@ function get_theme_feature_list( $api = true ) { 'featured-image-header' => __( 'Featured Image Header' ), 'featured-images' => __( 'Featured Images' ), 'footer-widgets' => __( 'Footer Widgets' ), + 'full-site-editing' => __( 'Full Site Editing' ), 'full-width-template' => __( 'Full Width Template' ), 'post-formats' => __( 'Post Formats' ), 'sticky-post' => __( 'Sticky Post' ),