diff -r c7c34916027a -r 177826044cd9 wp/wp-includes/feed-atom-comments.php
--- a/wp/wp-includes/feed-atom-comments.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/feed-atom-comments.php Mon Oct 14 18:28:13 2019 +0200
@@ -5,8 +5,8 @@
* @package WordPress
*/
-header('Content-Type: ' . feed_content_type('atom') . '; charset=' . get_option('blog_charset'), true);
-echo '';
+header( 'Content-Type: ' . feed_content_type( 'atom' ) . '; charset=' . get_option( 'blog_charset' ), true );
+echo '';
/** This action is documented in wp-includes/feed-rss2.php */
do_action( 'rss_tag_pre', 'atom-comments' );
@@ -27,37 +27,36 @@
do_action( 'atom_comments_ns' );
?>
>
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
comment_post_ID );
-?>
+if ( have_comments() ) :
+ while ( have_comments() ) :
+ the_comment();
+ $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
+ ?>
- ID);
- /** This filter is documented in wp-includes/feed.php */
- $title = apply_filters( 'the_title_rss', $title );
- /* translators: Individual comment title. 1: Post title, 2: Comment author name */
- printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
- } else {
- /* translators: Comment author title. 1: Comment author name */
- printf(ent2ncr(__('By: %s')), get_comment_author_rss());
- }
- ?>
-
+
+ ID );
+ /** This filter is documented in wp-includes/feed.php */
+ $title = apply_filters( 'the_title_rss', $title );
+ /* translators: Individual comment title. 1: Post title, 2: Comment author name */
+ printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
+ } else {
+ /* translators: Comment author title. %s: Comment author name */
+ printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
+ }
+ ?>
+
+
- ' . get_comment_author_url() . ''; ?>
+ ' . get_comment_author_url() . '';}
+ ?>
-
-
-
+
+
+
]]>
-
+
]]>
-comment_parent == 0 ) : // This comment is top level ?>
-
-comment_parent);
- // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it's more important that they both use the same system
-?>
-
-comment_parent == 0 ) : // This comment is top level
+ ?>
+
+ comment_parent );
+ // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, it's more important that they both use the same system
+ ?>
+
+ comment_ID, $comment_post->ID );
-?>
+ ?>
-
+