Changeset 5536

Show
Ignore:
Timestamp:
05/24/07 03:37:10 (1 year ago)
Author:
rob1n
Message:

the_search_query() revamp. fixes #4327

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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