Ticket #25229: wp-includes-feed-atom-comments.diff
File wp-includes-feed-atom-comments.diff, 2.1 KB (added by , 11 years ago) |
---|
-
wp-includes/feed-atom-comments.php
12 12 xmlns="http://www.w3.org/2005/Atom" 13 13 xml:lang="<?php bloginfo_rss( 'language' ); ?>" 14 14 xmlns:thr="http://purl.org/syndication/thread/1.0" 15 <?php do_action('atom_ns'); do_action('atom_comments_ns'); ?> 15 <?php 16 //duplicate_hook 17 do_action('atom_ns'); 18 /** 19 * Fired at the end of the Atom comments feed root to add namespaces. 20 * 21 * @since 2.8.0 22 */ 23 do_action('atom_comments_ns'); ?> 16 24 > 17 25 <title type="text"><?php 18 26 if ( is_singular() ) … … 39 47 <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" /> 40 48 <id><?php bloginfo_rss('comments_atom_url'); ?></id> 41 49 <?php } ?> 42 <?php do_action('comments_atom_head'); ?> 50 <?php 51 /** 52 * Fired at the end of the Atom comment feed header. 53 * 54 * @since 2.8.0 55 */ 56 do_action('comments_atom_head'); 57 ?> 43 58 <?php 44 59 if ( have_comments() ) : while ( have_comments() ) : the_comment(); 45 60 $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID ); … … 48 63 <title><?php 49 64 if ( !is_singular() ) { 50 65 $title = get_the_title($comment_post->ID); 66 //duplicate_hook 51 67 $title = apply_filters('the_title_rss', $title); 52 68 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 53 69 } else { … … 79 95 ?> 80 96 <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" /> 81 97 <?php endif; 82 do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID); 98 $comment_id = $comment->comment_ID; 99 $comment_post_id = $comment_post->ID; 100 /** 101 * Fired at the end of each Atom comment feed item. 102 * 103 * @since 2.2.0 104 * 105 * @param $comment_id The ID of the comment being displayed. 106 * @param $comment_post_id The ID of the post connected to the comment. 107 */ 108 do_action('comment_atom_entry', $comment_id, $comment_post_id); 83 109 ?> 84 110 </entry> 85 111 <?php endwhile; endif; ?>