From cf02373b393bf5bcd52b0e55cbcd83723051b824 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 30 Apr 2018 13:10:20 +0000 Subject: [PATCH] Comments: Update the inline docs following [42772]. See #43436 Built from https://develop.svn.wordpress.org/trunk@43042 git-svn-id: http://core.svn.wordpress.org/trunk@42871 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-post.php | 5 +++-- wp-includes/comment.php | 9 +++++---- wp-includes/version.php | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index 1836166fcd..c61e73dcd1 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -44,10 +44,11 @@ $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) ); * Perform other actions when comment cookies are set. * * @since 3.4.0 + * @since 4.9.6 The `$cookies_consent` parameter was added. * * @param WP_Comment $comment Comment object. - * @param WP_User $user User object. The user may not exist. - * @param boolean $cookies_consent Whether the user has opted-in commenter cookies. + * @param WP_User $user Comment author's user object. The user may not exist. + * @param boolean $cookies_consent Comment author's consent to store cookies. */ do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 974bc2897f..5efa23010b 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -540,11 +540,12 @@ function wp_queue_comments_for_comment_meta_lazyload( $comments ) { * Sets the cookies used to store an unauthenticated commentator's identity. Typically used * to recall previous comments by this commentator that are still held in moderation. * - * @param WP_Comment $comment Comment object. - * @param object $user Comment author's object. - * @param boolean $cookies_consent Optional. Comment author's consent to store cookies. Default true. - * * @since 3.4.0 + * @since 4.9.6 The `$cookies_consent` parameter was added. + * + * @param WP_Comment $comment Comment object. + * @param WP_User $user Comment author's user object. The user may not exist. + * @param boolean $cookies_consent Optional. Comment author's consent to store cookies. Default true. */ function wp_set_comment_cookies( $comment, $user, $cookies_consent = true ) { // If the user already exists, or the user opted out of cookies, don't set cookies. diff --git a/wp-includes/version.php b/wp-includes/version.php index a4d7f7f17b..255a30d714 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43041'; +$wp_version = '5.0-alpha-43042'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.