WordPress.org

Make WordPress Core

Ticket #12781: 12781.patch

File 12781.patch, 785 bytes (added by Viper007Bond, 4 years ago)

Replace get_search_query() call with source of the_search_query() function

  • wp-content/themes/twentyten/search.php

     
    1414                        <div id="content"> 
    1515 
    1616<?php if ( have_posts() ) : ?> 
    17                                 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 
     17                                <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . esc_attr( apply_filters( 'the_search_query', get_search_query() ) ) . '</span>' ); ?></h1> 
    1818                                <?php 
    1919                                /* Run the loop for the search to output the results. 
    2020                                 * If you want to overload this in a child theme then include a file