diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index ed3139154c..c89dbb3044 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -256,6 +256,28 @@ function get_theme_update_available( $theme ) { * Retrieve list of WordPress theme features (aka theme tags). * * @since 3.1.0 + * @since 3.2.0 Added 'Gray' color and 'Featured Image Header', 'Featured Images', + * 'Full Width Template', and 'Post Formats' features. + * @since 3.5.0 Added 'Flexible Header' feature. + * @since 3.8.0 Renamed 'Width' filter to 'Layout'. + * @since 3.8.0 Renamed 'Fixed Width' and 'Flexible Width' options + * to 'Fixed Layout' and 'Fluid Layout'. + * @since 3.8.0 Added 'Accessibility Ready' feature and 'Responsive Layout' option. + * @since 3.9.0 Combined 'Layout' and 'Columns' filters. + * @since 4.6.0 Removed 'Colors' filter. + * @since 4.6.0 Added 'Grid Layout' option. + * Removed 'Fixed Layout', 'Fluid Layout', and 'Responsive Layout' options. + * @since 4.6.0 Added 'Custom Logo' and 'Footer Widgets' features. + * Removed 'Blavatar' feature. + * @since 4.6.0 Added 'Blog', 'E-Commerce', 'Education', 'Entertainment', 'Food & Drink', + * 'Holiday', 'News', 'Photography', and 'Portfolio' subjects. + * Removed 'Photoblogging' and 'Seasonal' subjects. + * @since 4.9.0 Reordered the filters from 'Layout', 'Features', 'Subject' + * to 'Subject', 'Features', 'Layout'. + * @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. * * @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,12 +356,14 @@ function get_theme_feature_list( $api = true ) { 'Subject' => __( 'Subject' ), ); - // Loop over the wp.org canonical list and apply translations. $wporg_features = array(); + + // Loop over the wp.org canonical list and apply translations. foreach ( (array) $feature_list as $feature_category => $feature_items ) { if ( isset( $category_translations[ $feature_category ] ) ) { $feature_category = $category_translations[ $feature_category ]; } + $wporg_features[ $feature_category ] = array(); foreach ( $feature_items as $feature ) { diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 944e9d7d0a..2519ed01ae 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -208,7 +208,10 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; $features ) { echo '