WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/03/2010 11:38:38 PM (11 years ago)
Author:
nacin
Message:

Have get_search_query() escape by default, like it's echoing counterpart the_search_query(). see #12780

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r13957 r13978  
    168168<h2><?php echo esc_html( $title ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html_x('Add New', 'post'); ?></a> <?php
    169169if ( isset($_GET['s']) && $_GET['s'] )
    170     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( get_search_query() ) ); ?>
     170    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?>
    171171</h2>
    172172
Note: See TracChangeset for help on using the changeset viewer.