Ticket #4792: search-query.diff
| File search-query.diff, 693 bytes (added by , 18 years ago) |
|---|
-
wp-includes/general-template.php
966 966 return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) ); 967 967 } 968 968 969 function the_search_query() { 970 echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) ); 969 function the_search_query( $display = true ) { 970 $search_query = attribute_escape( apply_filters( 'the_search_query', get_search_query() ) ); 971 if ( $display ) 972 echo $search_query; 973 else 974 return $search_query; 971 975 } 972 976 973 977 function language_attributes() {