WordPress.org

Make WordPress Core

Ticket #42306: 42306.diff

File 42306.diff, 758 bytes (added by celloexpressions, 21 months ago)

Use the core theme features list in wp-admin, as these are the only tags with translations available.

  • src/wp-admin/theme-install.php

     
    198198                                <button type="button" class="clear-filters button" aria-label="<?php esc_attr_e( 'Clear current filters' ); ?>"><?php _e( 'Clear' ); ?></button>
    199199                        </div>
    200200                <?php
    201                 $feature_list = get_theme_feature_list();
     201                $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.
    202202                foreach ( $feature_list as $feature_name => $features ) {
    203203                        echo '<fieldset class="filter-group">';
    204204                        $feature_name = esc_html( $feature_name );