Use get_search_query() in feed-rss2-comments.php. Props SergeyBiryukov. fixes #21365
git-svn-id: http://core.svn.wordpress.org/trunk@21332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6b8c4779a
commit
29e6ade734
|
@ -16,11 +16,11 @@ echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '" ?' . '>'
|
||||||
>
|
>
|
||||||
<title type="text"><?php
|
<title type="text"><?php
|
||||||
if ( is_singular() )
|
if ( is_singular() )
|
||||||
printf(ent2ncr(__('Comments on %s')), get_the_title_rss());
|
printf( ent2ncr( __( 'Comments on %s' ) ), get_the_title_rss() );
|
||||||
elseif ( is_search() )
|
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
|
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() );
|
||||||
?></title>
|
?></title>
|
||||||
<subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle>
|
<subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle>
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||||
<channel>
|
<channel>
|
||||||
<title><?php
|
<title><?php
|
||||||
if ( is_singular() )
|
if ( is_singular() )
|
||||||
printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
|
printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
|
||||||
elseif ( is_search() )
|
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
|
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() );
|
||||||
?></title>
|
?></title>
|
||||||
<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
|
<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
|
||||||
<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
|
<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
|
||||||
|
|
Loading…
Reference in New Issue