Make WordPress Core


Ignore:
Timestamp:
05/03/2010 07:28:04 PM (15 years ago)
Author:
ryan
Message:

Use get_search_query(). Props zeo. see #13198

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r14339 r14388  
    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' );
Note: See TracChangeset for help on using the changeset viewer.