Changeset 22431
- Timestamp:
- 11/07/2012 07:56:10 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r22094 r22431 1216 1216 function comments_rss() { 1217 1217 _deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' ); 1218 return get_post_comments_feed_link();1218 return esc_url( get_post_comments_feed_link() ); 1219 1219 } 1220 1220 -
trunk/wp-includes/feed-atom-comments.php
r21332 r22431 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'); ?>" />32 <id><?php echo get_post_comments_feed_link('', 'atom'); ?></id>31 <link rel="self" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link('', 'atom') ); ?>" /> 32 <id><?php echo esc_url( 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(); ?>" /> -
trunk/wp-includes/feed-atom.php
r21289 r22431 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> -
trunk/wp-includes/link-template.php
r22298 r22431 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 … … 510 510 */ 511 511 function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) { 512 $url = get_post_comments_feed_link($post_id, $feed);512 $url = esc_url( get_post_comments_feed_link( $post_id, $feed ) ); 513 513 if ( empty($link_text) ) 514 514 $link_text = __('Comments Feed'); -
trunk/wp-includes/theme-compat/comments-popup.php
r21364 r22431 33 33 <h2 id="comments"><?php _e('Comments'); ?></h2> 34 34 35 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p>35 <p><a href="<?php echo esc_url( get_post_comments_feed_link($post->ID) ); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p> 36 36 37 37 <?php if ( pings_open() ) { ?>
Note: See TracChangeset
for help on using the changeset viewer.