mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Add @since notes for theme features added or removed in get_theme_feature_list() after its introduction in WordPress 3.1.
See #50165. git-svn-id: https://develop.svn.wordpress.org/trunk@47794 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user