Use get_search_query(). Props zeo. see #13198

git-svn-id: https://develop.svn.wordpress.org/trunk@14388 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-03 19:28:04 +00:00
parent c1fe068ec6
commit 00cb165e9c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
} elseif ( is_page() ) {
single_post_title( '' ); echo ' | '; bloginfo( 'name' );
} elseif ( is_search() ) {
printf( __( 'Search results for "%s"', 'twentyten' ), esc_html( $s ) ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
printf( __( 'Search results for "%s"', 'twentyten' ), get_search_query() ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
} elseif ( is_404() ) {
_e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
} else {