Make WordPress Core


Ignore:
Timestamp:
03/04/2024 12:39:54 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document the $post global in comment feed templates.

Follow-up to [18716].

Props viralsampat, sabernhardt.
See #60021.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom-comments.php

    r56324 r57759  
    7070while ( have_comments() ) :
    7171    the_comment();
    72     $comment_post    = get_post( $comment->comment_post_ID );
     72    $comment_post = get_post( $comment->comment_post_ID );
     73    /**
     74     * @global WP_Post $post Global post object.
     75     */
    7376    $GLOBALS['post'] = $comment_post;
    7477    ?>
Note: See TracChangeset for help on using the changeset viewer.