summaryrefslogtreecommitdiffstats
path: root/wp-includes/feed-atom-comments.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
commit30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch)
tree39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-includes/feed-atom-comments.php
parentAdding upstream version 6.4.3+dfsg1. (diff)
downloadwordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz
wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wp-includes/feed-atom-comments.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php
index 37f663a..1de77e3 100644
--- a/wp-includes/feed-atom-comments.php
+++ b/wp-includes/feed-atom-comments.php
@@ -69,7 +69,10 @@ do_action( 'rss_tag_pre', 'atom-comments' );
<?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>