Use get_search_query(). Props zeo. see #13198
git-svn-id: http://svn.automattic.com/wordpress/trunk@14388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a87641ad8
commit
a35bf04b19
|
@ -26,7 +26,7 @@
|
||||||
} elseif ( is_page() ) {
|
} elseif ( is_page() ) {
|
||||||
single_post_title( '' ); echo ' | '; bloginfo( 'name' );
|
single_post_title( '' ); echo ' | '; bloginfo( 'name' );
|
||||||
} elseif ( is_search() ) {
|
} 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() ) {
|
} elseif ( is_404() ) {
|
||||||
_e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
|
_e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue