diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/feed-rss2-comments.php --- a/wp/wp-includes/feed-rss2-comments.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/feed-rss2-comments.php Fri Sep 05 18:40:08 2025 +0200 @@ -72,7 +72,10 @@ 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; ?> @@ -110,8 +113,8 @@ * * @since 2.1.0 * - * @param int $comment_ID The ID of the comment being displayed. - * @param int $ID The ID of the post the comment is connected to. + * @param int $comment_id The ID of the comment being displayed. + * @param int $comment_post_id The ID of the post the comment is connected to. */ do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID ); ?>