wp/wp-includes/feed-atom-comments.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
--- a/wp/wp-includes/feed-atom-comments.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/feed-atom-comments.php	Fri Sep 05 18:40:08 2025 +0200
@@ -69,7 +69,10 @@
 <?php
 while ( have_comments() ) :
 	the_comment();
-	$comment_post    = get_post( $comment->comment_post_ID );
+	$comment_post = get_post( $comment->comment_post_ID );
+	/**
+	 * @global WP_Post $post Global post object.
+	 */
 	$GLOBALS['post'] = $comment_post;
 	?>
 	<entry>
@@ -93,7 +96,8 @@
 			<name><?php comment_author_rss(); ?></name>
 			<?php
 			if ( get_comment_author_url() ) {
-				echo '<uri>' . get_comment_author_url() . '</uri>';}
+				echo '<uri>' . get_comment_author_url() . '</uri>';
+			}
 			?>
 
 		</author>
@@ -110,7 +114,7 @@
 
 		<?php
 		// Return comment threading information (https://www.ietf.org/rfc/rfc4685.txt).
-		if ( 0 == $comment->comment_parent ) : // This comment is top-level.
+		if ( '0' === $comment->comment_parent ) : // This comment is top-level.
 			?>
 			<thr:in-reply-to ref="<?php the_guid(); ?>" href="<?php the_permalink_rss(); ?>" type="<?php bloginfo_rss( 'html_type' ); ?>" />
 			<?php