WordPress.org

Make WordPress Core

Ticket #17635: themes-search-subtitle.diff

File themes-search-subtitle.diff, 598 bytes (added by kawauso, 7 years ago)

Subtitle based on Comments screen code

  • wp-admin/themes.php

     
    7979        <?php endif;
    8080else : ?>
    8181<h2>
    82 <?php echo esc_html( $title ); ?>
    83 <?php endif; ?>
     82<?php echo esc_html( $title );
     83endif;
     84if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
     85        printf( '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ) . '</span>' ); ?>
    8486</h2>
    8587
    8688<h3><?php _e('Current Theme'); ?></h3>