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:
parent
cf3f7ac197
commit
315fcd5cd6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue