WordPress.org

Make WordPress Core

Ticket #20147: 20147.3.diff

File 20147.3.diff, 2.3 KB (added by mikeschroder, 6 years ago)

Tags and additional spacing removed; Available Themes moved to left of Search.

  • wp-admin/includes/class-wp-themes-list-table.php

     
    168168                                <p><?php printf( __( 'All of this theme&#8217;s files are located in <code>%2$s</code>.' ),
    169169                                        $title, str_replace( WP_CONTENT_DIR, '', $theme->get_template_directory() ), str_replace( WP_CONTENT_DIR, '', $theme->get_stylesheet_directory() ) ); ?></p>
    170170                        <?php endif; ?>
    171                         <?php
    172                         if ( $theme->get('Tags') )
    173                                 printf( '<p>' . __( 'Tags: %s.' ) . '</p>', $theme->display('Tags') );
    174                         ?>
    175171                        </div>
    176172                        <?php theme_update_available( $theme ); ?>
    177173                        </div>
  • wp-admin/themes.php

     
    136136                }
    137137        }
    138138        echo implode ( ' | ', $options );
    139 
    140         if ( $ct->get('Tags') ) : ?>
    141         <p><?php _e('Tags:'); ?> <?php echo $ct->display('Tags'); ?></p>
    142         <?php endif; ?>
     139        ?>
    143140</div>
    144141<?php theme_update_available($ct); ?>
    145142
    146143</div>
    147144
    148 <br class="clear" />
    149145<?php
    150146if ( ! current_user_can( 'switch_themes' ) ) {
    151147        echo '</div>';
     
    154150}
    155151?>
    156152
    157 <h3><?php _e('Available Themes'); ?></h3>
    158 
    159153<?php if ( !empty( $_REQUEST['s'] ) || !empty( $_REQUEST['filter'] ) || $wp_list_table->has_items() ) : ?>
    160154
    161155<form class="search-form filter-form" action="" method="get">
    162156
    163157<p class="search-box">
     158
    164159        <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Installed Themes'); ?>:</label>
    165160        <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" />
    166161        <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?>
    167162        <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a>
    168163</p>
    169164
    170 <br class="clear"/>
     165<h3><?php _e('Available Themes'); ?></h3>
    171166
    172167<div id="filter-box" style="<?php if ( empty($_REQUEST['filter']) ) echo 'display: none;'; ?>">
    173168<?php $feature_list = get_theme_feature_list(); ?>
     
    207202        <br class="clear"/>
    208203</div>
    209204
    210 <br class="clear" />
    211 
    212205<?php endif; ?>
    213206
    214207<?php $wp_list_table->display(); ?>