Changeset 6819 for trunk/wp-includes/feed-atom-comments.php
- Timestamp:
- 02/13/2008 06:29:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed-atom-comments.php
r6726 r6819 18 18 printf(__('Comments on: %s'), get_the_title_rss()); 19 19 elseif ( is_search() ) 20 printf(__('Comments for % s searching on %s'), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s']));20 printf(__('Comments for %1$s searching on %2$s'), get_bloginfo_rss( 'name' ), attribute_escape(get_search_query())); 21 21 else 22 22 printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); … … 28 28 29 29 <?php if ( is_singular() ) { ?> 30 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo get_comments_link() ?>" />30 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo get_comments_link(); ?>" /> 31 31 <link rel="self" type="application/atom+xml" href="<?php echo get_post_comments_feed_link('', 'atom'); ?>" /> 32 32 <id><?php echo get_post_comments_feed_link('', 'atom'); ?></id> 33 <?php } elseif(is_search()) { ?> 34 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo get_option('home') . '?s=' . attribute_escape(get_search_query()); ?>" /> 35 <link rel="self" type="application/atom+xml" href="<?php echo get_search_comments_feed_link('', 'atom'); ?>" /> 36 <id><?php echo get_search_comments_feed_link('', 'atom'); ?></id> 33 37 <?php } else { ?> 34 38 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php bloginfo_rss('home'); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.