Make WordPress Core

Changeset 5536


Ignore:
Timestamp:
05/24/2007 03:37:10 AM (17 years ago)
Author:
rob1n
Message:

the_search_query() revamp. fixes #4327

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r5526 r5536  
    944944}
    945945
     946function get_search_query() {
     947    return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) );
     948}
     949
    946950function the_search_query() {
    947     global $s;
    948     echo attribute_escape(stripslashes($s));
     951    echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) );
    949952}
    950953
Note: See TracChangeset for help on using the changeset viewer.