the_search_query() revamp. fixes #4327

git-svn-id: http://svn.automattic.com/wordpress/trunk@5536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-24 03:37:10 +00:00
parent cf3f7ac197
commit 315fcd5cd6
1 changed files with 5 additions and 2 deletions

View File

@ -943,9 +943,12 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
<?php
}
function get_search_query() {
return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) );
}
function the_search_query() {
global $s;
echo attribute_escape(stripslashes($s));
echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) );
}
function language_attributes() {