Ticket #21841: 21841.2.patch
File 21841.2.patch, 2.3 KB (added by , 12 years ago) |
---|
-
wp-includes/feed-atom-comments.php
28 28 29 29 <?php if ( is_singular() ) { ?> 30 30 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php comments_link_feed(); ?>" /> 31 <link rel="self" type="application/atom+xml" href="<?php echo get_post_comments_feed_link('', 'atom'); ?>" />31 <link rel="self" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link('', 'atom') ); ?>" /> 32 32 <id><?php echo get_post_comments_feed_link('', 'atom'); ?></id> 33 33 <?php } elseif(is_search()) { ?> 34 34 <link rel="alternate" type="<?php bloginfo_rss('html_type'); ?>" href="<?php echo home_url() . '?s=' . get_search_query(); ?>" /> -
wp-includes/feed-atom.php
48 48 <?php atom_enclosure(); ?> 49 49 <?php do_action('atom_entry'); ?> 50 50 <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/> 51 <link rel="replies" type="application/atom+xml" href="<?php echo get_post_comments_feed_link(0,'atom')?>" thr:count="<?php echo get_comments_number()?>"/>51 <link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link(0, 'atom') ); ?>" thr:count="<?php echo get_comments_number()?>"/> 52 52 <thr:total><?php echo get_comments_number()?></thr:total> 53 53 </entry> 54 54 <?php endwhile ; ?> -
wp-includes/link-template.php
484 484 } else { 485 485 $type = get_post_field('post_type', $post_id); 486 486 if ( 'page' == $type ) 487 $url = home_url("?feed=$feed&page_id=$post_id");487 $url = add_query_arg( array( 'feed' => $feed, 'page_id' => $post_id ), home_url( '/' ) ); 488 488 else 489 $url = home_url("?feed=$feed&p=$post_id");489 $url = add_query_arg( array( 'feed' => $feed, 'p' => $post_id ), home_url( '/' ) ); 490 490 } 491 491 492 492 return apply_filters('post_comments_feed_link', $url);