Make WordPress Core


Ignore:
Timestamp:
04/03/2010 11:38:38 PM (15 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-includes/feed-atom-comments.php

    r13113 r13978  
    1919            printf(ent2ncr(__('Comments on %s')), get_the_title_rss());
    2020        elseif ( is_search() )
    21             printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), esc_attr(get_search_query()));
     21            printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), get_search_query() );
    2222        else
    2323            printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
     
    3232    <id><?php echo get_post_comments_feed_link('', 'atom'); ?></id>
    3333<?php } elseif(is_search()) { ?>
    34     <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo home_url() . '?s=' . esc_attr(get_search_query()); ?>" />
     34    <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo home_url() . '?s=' . get_search_query(); ?>" />
    3535    <link rel="self" type="application/atom+xml" href="<?php echo get_search_comments_feed_link('', 'atom'); ?>" />
    3636    <id><?php echo get_search_comments_feed_link('', 'atom'); ?></id>
Note: See TracChangeset for help on using the changeset viewer.