From 3b157e44c7b841585091de19ad3c2f5ec4a51dcb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 13 Feb 2016 19:14:01 +0000 Subject: [PATCH] Docs: Add an internal note to the DocBlock for `comment_form_title()` explaining restoration of the `$comment` global. See [36512]. See #35624. git-svn-id: https://develop.svn.wordpress.org/trunk@36527 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 998a20e80f..4738dec797 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -1806,8 +1806,13 @@ function comment_id_fields( $id = 0 ) { * * Only affects users with JavaScript disabled. * + * @internal The $comment global must be present to allow template tags access to the current + * comment. See https://core.trac.wordpress.org/changeset/36512. + * * @since 2.7.0 * + * @global WP_Comment $comment Current comment. + * * @param string $noreplytext Optional. Text to display when not replying to a comment. * Default false. * @param string $replytext Optional. Text to display when replying to a comment.