Make WordPress Core


Ignore:
Timestamp:
05/14/2020 12:49:00 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add @since notes for theme features added or removed in get_theme_feature_list() after its introduction in WordPress 3.1.

See #50165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme.php

    r47790 r47794  
    257257 *
    258258 * @since 3.1.0
     259 * @since 3.2.0 Added 'Gray' color and 'Featured Image Header', 'Featured Images',
     260 *              'Full Width Template', and 'Post Formats' features.
     261 * @since 3.5.0 Added 'Flexible Header' feature.
     262 * @since 3.8.0 Renamed 'Width' filter to 'Layout'.
     263 * @since 3.8.0 Renamed 'Fixed Width' and 'Flexible Width' options
     264 *              to 'Fixed Layout' and 'Fluid Layout'.
     265 * @since 3.8.0 Added 'Accessibility Ready' feature and 'Responsive Layout' option.
     266 * @since 3.9.0 Combined 'Layout' and 'Columns' filters.
     267 * @since 4.6.0 Removed 'Colors' filter.
     268 * @since 4.6.0 Added 'Grid Layout' option.
     269 *              Removed 'Fixed Layout', 'Fluid Layout', and 'Responsive Layout' options.
     270 * @since 4.6.0 Added 'Custom Logo' and 'Footer Widgets' features.
     271 *              Removed 'Blavatar' feature.
     272 * @since 4.6.0 Added 'Blog', 'E-Commerce', 'Education', 'Entertainment', 'Food & Drink',
     273 *              'Holiday', 'News', 'Photography', and 'Portfolio' subjects.
     274 *              Removed 'Photoblogging' and 'Seasonal' subjects.
     275 * @since 4.9.0 Reordered the filters from 'Layout', 'Features', 'Subject'
     276 *              to 'Subject', 'Features', 'Layout'.
     277 * @since 4.9.0 Removed 'BuddyPress', 'Custom Menu', 'Flexible Header',
     278 *              'Front Page Posting', 'Microformats', 'RTL Language Support',
     279 *              'Threaded Comments', and 'Translation Ready' features.
     280 * @since 5.5.0 Added 'Block Editor Styles' and 'Wide Blocks' features.
    259281 *
    260282 * @param bool $api Optional. Whether try to fetch tags from the WordPress.org API. Defaults to true.
     
    335357    );
    336358
     359    $wporg_features = array();
     360
    337361    // Loop over the wp.org canonical list and apply translations.
    338     $wporg_features = array();
    339362    foreach ( (array) $feature_list as $feature_category => $feature_items ) {
    340363        if ( isset( $category_translations[ $feature_category ] ) ) {
    341364            $feature_category = $category_translations[ $feature_category ];
    342365        }
     366
    343367        $wporg_features[ $feature_category ] = array();
    344368
Note: See TracChangeset for help on using the changeset viewer.