WordPress.org

Make WordPress Core

Changeset 47794 for trunk


Ignore:
Timestamp:
05/14/2020 12:49:00 PM (7 months 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.

Location:
trunk/src
Files:
4 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
  • trunk/src/wp-admin/theme-install.php

    r47198 r47794  
    209209            </div>
    210210        <?php
    211         $feature_list = get_theme_feature_list( false ); // Use the core list, rather than the .org API, due to inconsistencies and to ensure tags are translated.
     211        // Use the core list, rather than the .org API, due to inconsistencies
     212        // and to ensure tags are translated.
     213        $feature_list = get_theme_feature_list( false );
     214
    212215        foreach ( $feature_list as $feature_name => $features ) {
    213216            echo '<fieldset class="filter-group">';
  • trunk/src/wp-includes/class-wp-theme.php

    r47631 r47794  
    935935                    return $this->name_translated;
    936936                }
     937
    937938                // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain
    938939                $this->name_translated = translate( $value, $this->get( 'TextDomain' ) );
     940
    939941                return $this->name_translated;
    940942            case 'Tags':
     
    971973
    972974                    $feature_list = get_theme_feature_list( false ); // No API.
     975
    973976                    foreach ( $feature_list as $tags ) {
    974977                        $tags_list += $tags;
  • trunk/src/wp-includes/customize/class-wp-customize-themes-section.php

    r47122 r47794  
    165165     */
    166166    protected function filter_drawer_content_template() {
    167         $feature_list = get_theme_feature_list( false ); // @todo Use the .org API instead of the local core feature list. The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned.
     167        // @todo Use the .org API instead of the local core feature list.
     168        // The .org API is currently outdated and will be reconciled when the .org themes directory is next redesigned.
     169        $feature_list = get_theme_feature_list( false );
    168170        ?>
    169171        <# if ( 'wporg' === data.action ) { #>
Note: See TracChangeset for help on using the changeset viewer.