From d3281725ec84a7a4767572a904a5ddd59613d73c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 25 Jul 2012 18:04:17 +0000 Subject: [PATCH] Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365 git-svn-id: https://develop.svn.wordpress.org/trunk@21332 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/feed-atom-comments.php | 6 +++--- wp-includes/feed-rss2-comments.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php index 94e89f52c4..1577db7b11 100644 --- a/wp-includes/feed-atom-comments.php +++ b/wp-includes/feed-atom-comments.php @@ -16,11 +16,11 @@ echo '' > <?php if ( is_singular() ) - printf(ent2ncr(__('Comments on %s')), get_the_title_rss()); + printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() ); elseif ( is_search() ) - printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), get_search_query() ); + printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); else - printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); + printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); ?> diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php index ddedd6d137..a6a91016a6 100644 --- a/wp-includes/feed-rss2-comments.php +++ b/wp-includes/feed-rss2-comments.php @@ -19,11 +19,11 @@ echo ''; <?php if ( is_singular() ) - printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); + printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() ); elseif ( is_search() ) - printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s'])); + printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() ); else - printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); + printf( ent2ncr( __( 'Comments for %s' ) ), get_bloginfo_rss( 'name' ) . get_wp_title_rss() ); ?>