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
|
@ -21,7 +21,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
|||
if ( is_singular() )
|
||||
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() );
|
||||
?></title>
|
||||
|
|
Loading…
Reference in New Issue