From 67c7c7d74afc264c7e27b056eac8d3c66ed46381 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 May 2018 13:12:16 +0000 Subject: [PATCH] Docs: Document the `cookies` default comment field added in [42772]. Props desrosj, chetan200891. See #44125. git-svn-id: https://develop.svn.wordpress.org/trunk@43304 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 5c3f0b7844..f7626f5389 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -2187,6 +2187,7 @@ function wp_list_comments( $args = array(), $comments = null ) { * @since 4.5.0 The 'author', 'email', and 'url' form fields are limited to 245, 100, * and 200 characters, respectively. * @since 4.6.0 Introduced the 'action' argument. + * @since 4.9.6 Introduced the 'cookies' default comment field. * * @param array $args { * Optional. Default arguments and form fields to override. @@ -2194,9 +2195,10 @@ function wp_list_comments( $args = array(), $comments = null ) { * @type array $fields { * Default comment fields, filterable by default via the {@see 'comment_form_default_fields'} hook. * - * @type string $author Comment author field HTML. - * @type string $email Comment author email field HTML. - * @type string $url Comment author URL field HTML. + * @type string $author Comment author field HTML. + * @type string $email Comment author email field HTML. + * @type string $url Comment author URL field HTML. + * @type string $cookies Comment cookie opt-in field HTML. * } * @type string $comment_field The comment textarea field HTML. * @type string $must_log_in HTML element for a 'must be logged in to comment' message.