Make WordPress Core

Ticket #4327: 4327.diff

File 4327.diff, 577 bytes (added by rob1n, 17 years ago)
  • wp-includes/general-template.php

     
    943943        <?php
    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
    951954function language_attributes() {