Make WordPress Core


Ignore:
Timestamp:
07/25/2012 06:04:17 PM (14 years ago)
Author:
ryan
Message:

Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-rss2-comments.php

    r21238 r21332  
    2020    <title><?php
    2121        if ( is_singular() )
    22             printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
     22            printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
    2323        elseif ( is_search() )
    24             printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s']));
     24            printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
    2525        else
    26             printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
     26            printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() );
    2727    ?></title>
    2828    <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
Note: See TracChangeset for help on using the changeset viewer.