WordPress.org

Make WordPress Core

Ticket #13198: twentyten-use-get_search_query-for-search-title.patch

File twentyten-use-get_search_query-for-search-title.patch, 754 bytes (added by zeo, 4 years ago)

Twenty Ten: Use get_search_query() for search title.

  • wp-content/themes/twentyten/header.php

     
    2626                } elseif ( is_page() ) { 
    2727                        single_post_title( '' ); echo ' | '; bloginfo( 'name' ); 
    2828                } elseif ( is_search() ) { 
    29                         printf( __( 'Search results for "%s"', 'twentyten' ), esc_html( $s ) ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' ); 
     29                        printf( __( 'Search results for "%s"', 'twentyten' ), get_search_query() ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' ); 
    3030                } elseif ( is_404() ) { 
    3131                        _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' ); 
    3232                } else {